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>
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
.Sh SYNOPSIS
.Nm wall
.Op Ar -n
+.Op Ar -t TIMEOUT
.Op Ar file
.Sh DESCRIPTION
.Nm Wall
.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