[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: init, pivot_root, chroot, etc ...

Hi, Anthony DeRobertis wrote:
> ctrl-c probably doesn't work due to the terminal not being set up (wild
> guess). Maybe you could make it work with "stty intr ^C"
Basically, it doesn't work because there's no controlling TTY set.
Opening a TTY usually sets the controlling TTY, but the linuxrc
context is set up by the kernel. Giving kernel processes a controlling
TTY is usually a bad idea (press ^c and kill a few kernel processes...).

There'a s the TIOCSCTTY ioctl call which a process can use to fix that,
but nothing in the linuxrc context does.

Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Never look a gift horse in the mouth.
		-- Saint Jerome

Reply to: