[BusyBox] ctrl+c not working for bash

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Thu Aug 18 10:06:45 UTC 2005


Prashant,

Quoting prashant waman <kiranprashant at yahoo.com>:
>    my /etc/inittab contain
> # inittab
> id:1:initdefault:
> #system initialization.
> si::sysinit:/etc/rc.d/rc.S
> l0:0:wait:/etc/rc.d/rc 0
> c1:1235:respawn:/bin/bash
> l2:2:wait:/bin/sh
> l4:4:wait:/bin/sh
> l6:6:wait:/etc/rc.d/rc 6
>
> now when system starts up init reads the inittab and
> runs /bin/bash and shows the prompt bash-2.024]
> but ctrl+c is not working for the shell. if i try to
> stop any custom program using ctrl+c, the program
> never
> get interrupted by ctrl+c and terminates normally.
> what is the problem?
> and what should i do to overcome this?

What is /dev/c1? If it is the same as /dev/console, forget about 'Ctrl-C'
there. It does not work (search the archives, there are messages dealing with
that exact problem).

Rather, you should use /dev/ttyS0 (or S1, S2, ...) where you will then be
able to 'Ctrl-C' your programs.

If none of these apply, tell us what /dev/c1 is (do a "ls -l /dev/c1").

Regards,
Yann.

( Hmmm, there seems to be no sed command in this mail! ;-) )

--
Yann E. MORIN
Roaming in the world...



More information about the busybox mailing list