home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!pa.dec.com!chene.cxo.dec.com!mrr
- From: mrr@chene.cxo.dec.com (Mark Richard Rance)
- Newsgroups: comp.unix.ultrix
- Subject: Re: signals
- Message-ID: <1992Aug31.234056.2003@PA.dec.com>
- Date: 31 Aug 92 23:40:56 GMT
- References: <1992Aug31.212926.4456@bmw.mayo.edu>
- Sender: news@PA.dec.com (News)
- Reply-To: mrr@chene.cxo.dec.com (Mark Richard Rance)
- Organization: Digital Equipment Corporation
- Lines: 27
-
-
- In article <1992Aug31.212926.4456@bmw.mayo.edu>, stan@sabaac.NoSubdomain.NoDomain (Andrew Staniszewski) writes:
- |>Newsgroups: comp.unix.ultrix
- |>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
-
- |>I am trying to catch SIGFPE, but it doesn't ever get raised, can anyone tell me
- |>how to set things up so that a signal gets generated for floating point
- |>exceptions??
- |>
-
-
- a process can use the kill system call to send a signal to another
- process or itself. btw:kill is a misnomer since a signal does not always
- terminate a process. the syntax is as follows:
-
- int kill (int pid, int sig);
-
- keep in mind that to send a signal both the sending and receiving
- processes must have the same effective user id, or the sending process
- must be the superuser.
-
- alternatively, a simple divide by zero should result in the generation
- of this signal.
-
- cheers,
- mark
-
-