[BusyBox] ctrl+c not working for bash

Rob Landley rob at landley.net
Thu Aug 18 08:36:23 MDT 2005


On Thursday 18 August 2005 02:06, prashant waman wrote:

> l0:0:wait:/etc/rc.d/rc 0
> c1:1235:respawn:/bin/bash

Try:
c1:1235:respawn:-/bin/bash

The "-" at the beginning of the command is a special flag indicating that init 
should allocate a controlling tty.  (Ordinarilly that's getty/login's job, 
but since we're bypassing getty, init has to do it itself.)

> 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?

Classic symptom of not having a controlling tty.

Rob


More information about the busybox mailing list