]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wall: support --timeout switch (vol 2.)
authorKarel Zak <kzak@redhat.com>
Tue, 12 Apr 2011 09:50:00 +0000 (11:50 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 12 Apr 2011 09:50:00 +0000 (11:50 +0200)
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>
term-utils/Makefile.am
term-utils/wall.1

index f0509f8b9c9b5f2969d11c2b9730f12618652935..c40d9db86782941c033e2c04c1d6c869b259a651 100644 (file)
@@ -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
index dbc7105be66025ec6fb9fcaecff243855a7b1067..b3b2aa50c30556127f3d427954f90903a06dfd8e 100644 (file)
@@ -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