lkml.org 
[lkml]   [2000]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Booting into /bin/bash
According to Richard B. Johnson:
> Without patching the kernel, I think I can show that there is something
> basically wrong. The patch may just hide the problem.

No.

> Something seems to be wrong, even with using the first virtual
> terminal, which is a 'tty' and should (must) be able to become a
> a controlling terminal.

Only if you're the process group leader.. read drivers/char/tty_io.c
function tiocsctty()

> This is a stock kernel version 2.2.15. The stuff necessary to make
> 'strace' run ends up with the 'init' PID of 6. FYI, it is a real
> bear to 'strace' init's startup.

And that is the cause of you not being process group leader.

Stick a setsid() before the tty stuff.

Mike.
--
Deadlock, n.:
Deceased rastaman.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.447 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site