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/
This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:20 EST