[BusyBox] console problems in 0.60.5

Dan Kegel dkegel at ixiacom.com
Thu Apr 3 22:22:46 UTC 2003


On 0.60.5, but probably not on 0.60.2, I am having trouble
with the serial console ignoring ^C and ^S (and ^C and ^Z, etc.)

Interestingly, it appears to be paying attention
to ^S in a strangely linebuffered way.
To demonstrate this problem, run 'ping localhost'.
This will print one line per second.
Press ^S.
Note that output does *not* stop.
Now press Enter.
Note that output *does* stop.
Now press ^Q.
Output does not resume until you press Enter.

Pretty odd, eh?

http://www.busybox.net/lists/busybox/2002-June/011695.html
talks about some serial problems, but I'm not quite sure
it's the same thing.

I tried the following silly patch, but it didn't help.

--- busybox-0.60.5/init.c.old   Thu Apr  3 12:55:46 2003
+++ busybox-0.60.5/init.c       Thu Apr  3 12:58:16 2003
@@ -623,6 +623,8 @@
                         fflush(stdout);
                         write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
                         getc(stdin);
+                       /* Dunno if this is right, but without this, ^C won't kill programs */
+                       ioctl(0, TIOCSCTTY, 1);
                 }

                 /* Log the process name and args */

Any suggestions?

Thanks,
Dan



More information about the busybox mailing list