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