home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / programm / 5876 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.3 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!rutgers!cmcl2!psinntp!psinntp!heimdall!thor!scjones
  2. From: scjones@thor.sdrc.com (Larry Jones)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: How does abort () work
  5. Message-ID: <403@heimdall.sdrc.com>
  6. Date: 10 Jan 93 18:41:29 GMT
  7. References: <C0JK56.1LD2@austin.ibm.com>
  8. Sender: news@heimdall.sdrc.com
  9. Lines: 16
  10.  
  11. In article <C0JK56.1LD2@austin.ibm.com>, subra@bynar.austin.ibm.com (Sivarama Subramanian) writes:
  12. >     I am writing test cases to test the functionality of abort (). I would
  13. > like to know when a process calls abort (), can it ignore it by setting the
  14. > signal (SIGABRT, SIG_IGN). In a related note, I would like to know if a
  15. > process can send a signal to itself.
  16.  
  17. ANSI C requires that abort() terminate the program unless SIGABRT is
  18. caught and the signal handler does not return (e.g. calls longjmp).
  19. Ignoring SIGABRT may or may not stop abort() for non-ANSI systems.
  20. Sending signals to yourself is not only possible, but occasionally
  21. useful as well.  See raise() for ANSI systems, kill() for non-ANSI.
  22. ----
  23. Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
  24. larry.jones@sdrc.com  or  ...uunet!sdrc!larry.jones
  25. I don't need to do a better job.  I need better P.R. on the
  26. job I DO. -- Calvin
  27.