home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:13260 comp.unix.programmer:5253
- Newsgroups: comp.unix.questions,comp.unix.programmer
- Path: sparky!uunet!panther!panther3.panther.mot.com!ronf
- From: ronf@panther3.panther.mot.com (Ron Feigen)
- Subject: Re: Reliable signals in Unix ?
- Message-ID: <1992Nov11.203017.6717@panther.mot.com>
- Keywords: signal
- Sender: usenet@panther.mot.com
- Nntp-Posting-Host: panther3.panther.mot.com
- Organization: Motorola Panther Project, Chandler, AZ
- References: <1992Nov11.163624.10937@lambda.msfc.nasa.gov>
- Date: Wed, 11 Nov 1992 20:30:17 GMT
- Lines: 41
-
- In article <1992Nov11.163624.10937@lambda.msfc.nasa.gov> bday@lambda.msfc.nasa.gov (Brian Day) writes:
- >OK, time for a question from the brain-dead.
- >
- >I have two Unix processes: one sends a burst of signals to the
- >other. The receiving process misses several of these signals -
- >i.e. they don't get 'queued up'.
- >
- >I know I could set up a kluge with a semaphore to act as an up-down
- >counter, but I was hoping for a more elegant solution. This is
- >on a Sparcstation 4 running SunOS 4.1.1.
- >
- >Any suggestions ?
- >
- >Many thanks,
- >
- >bd
- >
- >
- >--
- >Brian Day bday@lambda.msfc.nasa.gov
- >New Technology, Inc. (205) 461-4584
- >Mission Operations Support Systems Opinions are my own -
- >Marshall Space Flight Center, Huntspatch, AL May be fatal if swallowed
-
- Signals will not queue up. Reliable delivery means that they will be delivered
- but once delievered the signal maybe ignored, as in the case of _burts_ of the
- same type of signal.
-
- What I have done in the past with SIG_CHLD is after servicing a SIG_CHLD (wait3)
- I will _loop_ on wait3() assuming there might have been other SIG_CHLDs I missed
- while processing the first SIG_CHLD if I get an ECHILD I exit.
-
- You might try a pipe and use SIGIO. You can then read from the pipe until it is
- empty.
-
-
- --
-
- >
- Ron Feigen
- ronf@panther.mot.com
-