Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel!munnari.oz.au!metro!news From: dawes@physics.su.OZ.AU (David Dawes) Subject: Re: init, rc, signal handling (386BSD) Message-ID: <1992Aug13.115750.2119@ucc.su.OZ.AU> Sender: news@ucc.su.OZ.AU Nntp-Posting-Host: physics.su.oz.au Organization: School of Physics, University of Sydney, Australia References: <1992Aug13.103235.25465@ucc.su.OZ.AU> Date: Thu, 13 Aug 1992 11:57:50 GMT Lines: 26 In article <1992Aug13.103235.25465@ucc.su.OZ.AU> dawes@physics.su.OZ.AU (David Dawes) writes: > >I've noticed that signal handling gets screwed up for commands run from >/etc/rc. One particular example is xdm. When started from /etc/rc >the signal handlers it installs don't work -- the signals get ignored. >I checked the init source, and it resets the signal handling the SIG_DFL. > >I tried a simple program which checks this, and the default handler's are >correctly set -- but signals are being ignored regardless of the default >behaviour or if a handler is installed. > >This is making it impossible to shutdown xdm cleanly when it is started >at boot time from /etc/rc. I've just found the following workaround. Run the command using csh -c "command args" Using sh instead of csh doesn't work. David -- ------------------------------------------------------------------------------ David Dawes (dawes@physics.su.oz.au) DoD#210 | Phone: +61 2 692 2639 School of Physics, University of Sydney, Australia | Fax: +61 2 660 2903 ------------------------------------------------------------------------------