home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!sdd.hp.com!usc!news.service.uci.edu!cerritos.edu!swc!wndrsvr!andyb
- From: andyb@wndrsvr.la.ca.us (Andy Brager)
- Newsgroups: comp.unix.questions
- Subject: Problem with SIGHUP handler. ISC V.3 3.0
- Message-ID: <BzAM1p.MqC@wndrsvr.la.ca.us>
- Date: 15 Dec 92 08:53:49 GMT
- Organization: Wonder Server - Public Access for SoCal
- Lines: 17
-
- I have a strange problem with signal(2). As soon as I
- call signal(2) with the address of the handler for SIGHUP, it jumps
- to the handler. On checking the signal number passed into
- the handler and also errno, they are both zer0. If not for a
- wait(2) the program would exit immediately. If I remove
- the call to signal(2), the code behaves as expected (ie. does not call
- the handler). A similar signal using alarm(2) and SIGALRM works just
- fine (doesn't go to the handler until a SIGALRM occurs). I am
- somewhat baffled. Rather than burdening the net with code, please
- write me if you have any ideas. Thank you!
-
- - Andy
- --
- DO NOT BUY TOUCHE COMPUTERS -email for details
- Large Packages (2K+ Total): cerritos.edu!swc!wndrsvr!andyb
- -I don't know but I been told; two sides to every story - Joe Walsh
- [ This Space For Rent - No children, pets, or toxic waste dumps please. ]
-