cttyhack: document the need to setsid

function                                             old     new   delta
packed_usage                                       26988   27057     +69

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-05-15 20:43:07 +02:00
parent c84c85ae34
commit b367bb2a62
2 changed files with 23 additions and 4 deletions

View File

@ -649,8 +649,16 @@
"\n -S SALT" \
) \
#define cttyhack_trivial_usage NOUSAGE_STR
#define cttyhack_full_usage ""
#define cttyhack_trivial_usage \
"PROG ARGS"
#define cttyhack_full_usage "\n\n" \
"Give PROG a controlling tty if possible." \
"\nExample for /etc/inittab (for busybox init):" \
"\n ::respawn:/bin/cttyhack /bin/sh" \
"\nGiving controlling tty to shell running with PID 1:" \
"\n $ exec cttyhack sh" \
"\nStarting an interative shell from boot shell script:" \
"\n setsid cttyhack sh" \
#define cut_trivial_usage \
"[OPTIONS] [FILE]..."