danger

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Neal Becker
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: danger
While purusing daemon.c I noticed something that looks rather scary.
I see that static void sigchld_handler(int sig) is modifying data
structures in the signal handler. This may be asking for trouble.
Also, tests of the structure do not seem to be protected with signal
blocking.

If you agree that my concern is well-founded, I can supply some
example code of how to avoid these pitfalls.