mirror of
https://github.com/sheumann/hush.git
synced 2025-01-26 14:33:00 +00:00
getty: add commented-out extended error diagnostic
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
dba7094d62
commit
45c35e9de0
@ -549,7 +549,15 @@ int getty_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
*/
|
*/
|
||||||
pid = getpid();
|
pid = getpid();
|
||||||
if (getsid(0) != pid)
|
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");
|
bb_perror_msg_and_die("setsid");
|
||||||
|
}
|
||||||
/* Looks like we are already a session leader.
|
/* Looks like we are already a session leader.
|
||||||
* In this case (setsid failed) we may still have ctty,
|
* In this case (setsid failed) we may still have ctty,
|
||||||
* and it may be different from tty we need to control!
|
* and it may be different from tty we need to control!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user