process: Fix races on fatal signal handling in process_start().
authorBen Pfaff <blp@nicira.com>
Wed, 15 Jul 2009 19:05:04 +0000 (12:05 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 16 Jul 2009 16:17:06 +0000 (09:17 -0700)
commit52dc2ef41b18cc7d4ed2d19f125f19af5eba12b5
treea46d821cafda045b3ab26e03ad047ce22dfc977c
parent8c4c1387fdebb4b650a093340842ce2226e118af
process: Fix races on fatal signal handling in process_start().

To prevent fatal signals in a child process from causing the parent
process's pidfile, etc. to be deleted, we need to block fatal signals
around fork and call fatal_signal_fork() in the child process.

This problem was noticed through code inspection; it has not been observed
in practice.
lib/process.c