aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-08-16 13:29:25 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2012-08-16 13:29:25 +0200
commit45c35e9de01010c6bb12f2b86fd5b8b31afe4617 (patch)
treee60be5d013c000989022c32468dfe4abad14ea04 /loginutils
parentdba7094d62d699d1bd16c76c287d1e6d944970ca (diff)
downloadbusybox-45c35e9de01010c6bb12f2b86fd5b8b31afe4617.tar.gz
getty: add commented-out extended error diagnostic
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index bbb5a96b4..f9b8bac44 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -549,7 +549,15 @@ int getty_main(int argc UNUSED_PARAM, char **argv)
*/
pid = getpid();
if (getsid(0) != pid)
+ {
+ //for debugging:
+ //bb_perror_msg_and_die("setsid failed:"
+ // " pid %d ppid %d"
+ // " sid %d pgid %d",
+ // pid, getppid(),
+ // getsid(0), getpgid(0));
bb_perror_msg_and_die("setsid");
+ }
/* Looks like we are already a session leader.
* In this case (setsid failed) we may still have ctty,
* and it may be different from tty we need to control!