Use pthread_sigmask() in place of sigprocmask(), for thread safety.
authorBen Pfaff <blp@nicira.com>
Fri, 5 Apr 2013 17:25:50 +0000 (12:25 -0500)
committerBen Pfaff <blp@nicira.com>
Thu, 2 May 2013 20:55:45 +0000 (13:55 -0700)
commit92829687b4f303fef7a6ca39d226e63d6be145e3
treeab1ce5a6eb82d7a0f5c7a07cec54eea36f31d15a
parent743cea45434a5a3c6560a73f29632c6352874c61
Use pthread_sigmask() in place of sigprocmask(), for thread safety.

POSIX says that multithreaded programs must not use sigprocmask() but must
use pthread_sigmask() instead.  This commit makes that replacement.

The actual use of signals in Open vSwitch is still not thread safe
following this commit, but this change is a necessary prerequisite for
fixing the other problems.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/process.c
lib/signals.c
lib/signals.h
lib/timeval.c