setsid cttyhack ash
Denys Vlasenko
vda.linux at googlemail.com
Fri Dec 28 17:10:05 UTC 2007
On Friday 28 December 2007 03:47, JoSH Lehan wrote:
> Saw the earlier thread in the mailing list archives about this, and
> was having the same problem too.
> A shell opened, as part of the /etc/init.d/rc.S file, wouldn't have a
> controlling tty.
>
> This command seemed to fix it for me, though:
>
> setsid cttyhack ash
>
> This makes the ash error about job control go away, and "echo Hi >
> /dev/tty" now works.
>
> Is this the recommended approach, or is there a better way?
Yes, this should work. It might fail to work on exotic console devices
(console on bidirectional parallel port, anyone?)
--
vda
More information about the busybox
mailing list