home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16789 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!hphalle6.informatik.tu-muenchen.de!behrenss
  3. From: behrenss@hphalle6.informatik.tu-muenchen.de (Soenke Behrens)
  4. Subject: Re: Questions on kill signal
  5. References: <1992Nov19.093605.11370@nuscc.nus.sg>
  6. Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
  7. Organization: Technische Universitaet Muenchen, Germany
  8. Date: Thu, 19 Nov 1992 15:56:39 GMT
  9. X-Newsreader: TIN [version 1.1 PL7]
  10. Message-ID: <1992Nov19.155639.9006@Informatik.TU-Muenchen.DE>
  11. Lines: 18
  12.  
  13. LIM FANG HOW (isc40038@nusunix1.nus.sg) wrote:
  14.  
  15. : How to implement a process that when receives a kill signal from the
  16. : shell, will write some characters into a text file ? 
  17.  
  18. Forget it. You could do it with SIGINT (user hitting ^C), but a true kill
  19. (-9, that is) cannot be acted upon. The reason for this is, I think, to
  20. provide a surefire way of killing a program without giving the program
  21. the chance to wreck havoc because the code that intercepts the signal
  22. is also buggy :)
  23.  
  24. Soenke
  25.  
  26. --
  27. ===========================================================================
  28. More than silver, more than gold, I need   !    behrenss@informatik.
  29. electricity. I need it for my dreams.      !    tu-muenchen.de
  30. (RACTER)                                   !  FIDO: 2:246/13 Soenke Behrens
  31.