summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorKarel Zak2011-04-12 11:50:00 +0200
committerKarel Zak2011-04-12 11:50:00 +0200
commit35b671371b307bd90e0f890cfa0526399a32b262 (patch)
treea417723817d8ba4f9ec78e584a4e5247c8de64da /term-utils
parentwall: cleanup mbufsize usage (diff)
downloadkernel-qcow2-util-linux-35b671371b307bd90e0f890cfa0526399a32b262.tar.gz
kernel-qcow2-util-linux-35b671371b307bd90e0f890cfa0526399a32b262.tar.xz
kernel-qcow2-util-linux-35b671371b307bd90e0f890cfa0526399a32b262.zip
wall: support --timeout switch (vol 2.)
This is the rest of the commit cae7485e59299c4b70ea7e1c7a4206df416701dc the original patch was committed without man page and Makefile changes. Sorry. Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/Makefile.am2
-rw-r--r--term-utils/wall.15
2 files changed, 6 insertions, 1 deletions
diff --git a/term-utils/Makefile.am b/term-utils/Makefile.am
index f0509f8b9..c40d9db86 100644
--- a/term-utils/Makefile.am
+++ b/term-utils/Makefile.am
@@ -53,7 +53,7 @@ endif
if BUILD_WALL
usrbin_exec_PROGRAMS += wall
-wall_SOURCES = wall.c ttymsg.c ttymsg.h
+wall_SOURCES = wall.c ttymsg.c ttymsg.h $(top_srcdir)/lib/strutils.c
dist_man_MANS += wall.1
if USE_TTY_GROUP
diff --git a/term-utils/wall.1 b/term-utils/wall.1
index dbc7105be..b3b2aa50c 100644
--- a/term-utils/wall.1
+++ b/term-utils/wall.1
@@ -42,6 +42,7 @@
.Sh SYNOPSIS
.Nm wall
.Op Ar -n
+.Op Ar -t TIMEOUT
.Op Ar file
.Sh DESCRIPTION
.Nm Wall
@@ -64,6 +65,10 @@ and the program is suid or sgid.
.Bl -tag -width Fl
.It Fl n, Fl Fl nobanner
Supress banner
+.It Fl t, Fl Fl timeout Ar TIMEOUT
+Write timeout to terminals in seconds. Argument must be positive
+integer. Default value is 300 seconds, which is a legacy from
+time when people ran terminals over modem lines.
.It Fl V, Fl Fl version
Output version and exit.
.It Fl h, Fl Fl help