projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dba7094
)
getty: add commented-out extended error diagnostic
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 16 Aug 2012 11:29:25 +0000
(13:29 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 16 Aug 2012 11:29:25 +0000
(13:29 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
loginutils/getty.c
patch
|
blob
|
history
diff --git
a/loginutils/getty.c
b/loginutils/getty.c
index bbb5a96b4237731e767041e711bda8eb6d7dceee..f9b8bac44413e4ee87795b77f4c238e66db4ecbc 100644
(file)
--- 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!