summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-15 20:43:07 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-15 20:43:07 +0200
commitb367bb2a620d3c349b0a61b949a6ebca32bf5395 (patch)
treee6871fac55abaae0e388e5351adc0df3081db55f /include
parentc84c85ae345f6b3a4ba74ae1ab22acddd41fa456 (diff)
cttyhack: document the need to setsid
function old new delta packed_usage 26988 27057 +69 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/usage.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h
index 9d9ad008b..be52f187f 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -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]..."