danger

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Neal Becker
Fecha:  
A: exim-users
Asunto: 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.