home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4093 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!munnari.oz.au!metro!news
  3. From: dawes@physics.su.OZ.AU (David Dawes)
  4. Subject: Re: init, rc, signal handling (386BSD)
  5. Message-ID: <1992Aug13.115750.2119@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: physics.su.oz.au
  8. Organization: School of Physics, University of Sydney, Australia
  9. References: <1992Aug13.103235.25465@ucc.su.OZ.AU>
  10. Date: Thu, 13 Aug 1992 11:57:50 GMT
  11. Lines: 26
  12.  
  13. In article <1992Aug13.103235.25465@ucc.su.OZ.AU> dawes@physics.su.OZ.AU (David Dawes) writes:
  14. >
  15. >I've noticed that signal handling gets screwed up for commands run from
  16. >/etc/rc.  One particular example is xdm.  When started from /etc/rc
  17. >the signal handlers it installs don't work -- the signals get ignored.
  18. >I checked the init source, and it resets the signal handling the SIG_DFL.
  19. >
  20. >I tried a simple program which checks this, and the default handler's are
  21. >correctly set -- but signals are being ignored regardless of the default
  22. >behaviour or if a handler is installed.
  23. >
  24. >This is making it impossible to shutdown xdm cleanly when it is started
  25. >at boot time from /etc/rc.
  26.  
  27. I've just found the following workaround.  Run the command using
  28.  
  29. csh -c "command args"
  30.  
  31. Using sh instead of csh doesn't work.
  32.  
  33. David
  34. --
  35. ------------------------------------------------------------------------------
  36.  David Dawes (dawes@physics.su.oz.au)    DoD#210      | Phone: +61 2 692 2639
  37.  School of Physics, University of Sydney, Australia   | Fax:   +61 2 660 2903
  38. ------------------------------------------------------------------------------
  39.