[BusyBox] ash (busybox) problem:"job control turned off" -- getty (tinylogin) problem: errno25: Not a typewriter (printed as "Inappropriate ioctl for device")

Vladimir N. Oleynik dzo at simtreas.ru
Wed Jun 26 06:35:06 UTC 2002


Erik,

> On Sat Jun 08, 2002 at 07:43:03PM +0400, Vladimir N. Oleynik wrote:
> > Last path to loginutils/login.c and init.c in attach.
> 
> Hi vodz.  Your login patch looks fine to me.  I don't
> see any patch to init.c though.  Forgotten?

Ok. I ready for publicate this path.

Comment special for others patcher`s:

1) PLEASE. Do not change strlen("strings") to sizeof("string"). 
This not equivalent! (align effect). 
I very long time finding this strange error... :(

2) Function console_setup() closed descriptor! (Very old bug).

3) Please not put setsid() in mixed places. This do different effect!

4) I think, ASK_FIRST set emergency shell mode. This not have
by default "job control". 

DANGER: Control tty setted after reopen console only.

If require "job control" to ASK_FIRST inittab line You must set:

tty1::askfirst:/bin/sh --login < /dev/tty1 > /dev/tty1 2> /dev/tty1

Or use getty+login.


--w
vodz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: last_patch47.gz
Type: application/x-gzip
Size: 1502 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20020626/bd4304c9/attachment.bin 


More information about the busybox mailing list