[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ^Z kills my shell



 We hashed out how to deal with job control and the lack of same at length
in the rc mailing list. I suspect es is behaving right, but that other
programs are failing.

 What should happen is that the login program SIG_IGN's all job
control signals, the shell leaves them SIG_IGN'd, and all programs
which try to fake job control (stuff that runs cbreak, mainly) notices
that they're SIG_IGN'd and takes this as a sign to not do faking.
Unfortunately, xterm doesn't SIG_IGN job control signals when it
starts up, and not all fake-job-control programs notice SIG_IGN'd signals.
What I do in rc is to manually SIG_IGN the various signals in new
shells, and to stty the susp character to ^A (I'd use 'undef', but not
all systems support it).

	- cks