Sigaction shows varied signals when checked at parent process after the child exits
Parent process forked a child to print() some output using fflush(NULL) and does _exit(0);
After the child exits, the parent where I had added a sigaction for signals 1-15 and 33-300 shows varied signal number each time, the child is forked, prints and exits. sometimes it shows 11, 43 , 100, 123 ....
How to figure out why such bogus values are coming? If I add explicitly a handler for SIGCHLD, it works fine!! If no user-defined handler, some bogus signal no is shown each time ...
Any pointers or help in this regard is appreciated.
Thanks,
bsr
|