Problems with signal handler

Heiko Blume src at scuzzy.in-berlin.de
Sat Jan 26 07:20:24 AEST 1991


ronald at robobar.co.uk (Ronald S H Khoo) writes:
>Actually, what I'd really like to know is, is there an abstract interface to
>"held" signals that maps reasonably well on top of all the seemingly
>endless different kinds of signal interfaces ?  Or is it really the case
>that all we can really use in half-portable code is just plain signal() ?

if you mean how to find out what (blocked) signals are pending (do you?)
posix has defined such an interface:

sigset_t set;				/* this object */
sigemptyset(&set);			/* must be initialized */
sigpending(&set);			/* to be filled with the pending-set */
if(sigismember(&set,SIGCHLD))		/* and tested for a specific signal */
   printf("SIGCHLD had been posted\n");
-- 
      Heiko Blume <-+-> src at scuzzy.in-berlin.de <-+-> (+49 30) 691 88 93
                    public source archive [HST V.42bis]:
        scuzzy Any ACU,f 38400 6919520 gin:--gin: nuucp sword: nuucp
                     uucp scuzzy!/src/README /your/home



More information about the Comp.unix.programmer mailing list