From: Karel Zak Date: Tue, 12 Apr 2011 09:50:00 +0000 (+0200) Subject: wall: support --timeout switch (vol 2.) X-Git-Tag: v2.20-rc1~368 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35b671371b307bd90e0f890cfa0526399a32b262;p=thirdparty%2Futil-linux.git 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 Signed-off-by: Karel Zak --- diff --git a/term-utils/Makefile.am b/term-utils/Makefile.am index f0509f8b9c..c40d9db867 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 dbc7105be6..b3b2aa50c3 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