home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6598 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.4 KB

  1. Path: sparky!uunet!olivea!decwrl!pa.dec.com!chene.cxo.dec.com!mrr
  2. From: mrr@chene.cxo.dec.com (Mark Richard Rance)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: signals
  5. Message-ID: <1992Aug31.234056.2003@PA.dec.com>
  6. Date: 31 Aug 92 23:40:56 GMT
  7. References: <1992Aug31.212926.4456@bmw.mayo.edu>
  8. Sender: news@PA.dec.com (News)
  9. Reply-To: mrr@chene.cxo.dec.com (Mark Richard Rance)
  10. Organization: Digital Equipment Corporation
  11. Lines: 27
  12.  
  13.  
  14. In article <1992Aug31.212926.4456@bmw.mayo.edu>, stan@sabaac.NoSubdomain.NoDomain (Andrew Staniszewski) writes:
  15. |>Newsgroups: comp.unix.ultrix
  16. |>Path: pa.dec.com!decwrl!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!bru!sabaac!stan
  17.  
  18. |>I am trying to catch SIGFPE, but it doesn't ever get raised, can anyone tell me
  19. |>how to set things up so that a signal gets generated for floating point
  20. |>exceptions??
  21. |>
  22.  
  23.  
  24. a process can use the kill system call to send a signal to another 
  25. process or itself.  btw:kill is a misnomer since a signal does not always
  26. terminate a process.  the syntax is as follows:
  27.  
  28.     int kill (int pid, int sig);
  29.  
  30. keep in mind that to send a signal both the sending and receiving 
  31. processes must have the same effective user id, or the sending process 
  32. must be the superuser.
  33.  
  34. alternatively, a simple divide by zero should result in the generation 
  35. of this signal.
  36.  
  37. cheers,
  38. mark
  39.  
  40.