*BSD News Article 3568


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: init, rc, signal handling (386BSD)
Message-ID: <1992Aug13.103235.25465@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
Date: Thu, 13 Aug 1992 10:32:35 GMT
Lines: 21


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.

Does anyone have any ideas about this?

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