Subj : pthread_sigmask in single thread application To : comp.programming.threads From : Harshana Date : Mon Jan 03 2005 11:35 pm Hi all, I have a single thread, socket based program that need to handle SIG_CHILD when any of its child processes exits. But signals should come only when its in select() loop. So I use pthread_sigmask() BLOCK and UNBLOCK to prevent SIG_CHLD from coming while working outside of select(). But recently I have noticed that signals doesn't get blocked with pthread_sigmask(BLOCK). I have seen this kind of behaviour when linked without -lpthread. But now irrespective of linking -lpthread library, sigmask() doesn't work. Anyone has any idea why its happening like this? Can anyone suggest me a solution? I'm developing this on "SunOS dev 5.9 Generic_112233-10 sun4u sparc SUNW,Sun-Fire" and running on "SunOS cpu10 5.9 Generic_112233-10 sun4u sparc SUNW,Ultra-Enterprise" Thanks in advance, Harshana .