Fix for using the FreeBSD provided kernel patch for the lost signal
authorDan McNulty <mcnulty@cs.wisc.edu>
Tue, 7 Sep 2010 16:10:42 +0000 (11:10 -0500)
committerDan McNulty <mcnulty@cs.wisc.edu>
Tue, 7 Sep 2010 16:10:42 +0000 (11:10 -0500)
commita80589ac2d5bb191dc58825f1bacb5c92e6ea687
tree7a11dd913558e8171e78e50e2aed06714539aaf5
parentd328c0005ec7facbaa31bb83a2194d9e8fcf8c33
Fix for using the FreeBSD provided kernel patch for the lost signal
kernel bug.

The patch provided by the FreeBSD developer fixed the problem for some
signals, but not all signal. Specifically, job control signals (SIGSTOP
and friends) and SIGKILL. This fix changes ProcControl to issue SIGUSR2
signals to stop threads instead of SIGSTOPs. There is no semantic
difference between using a SIGUSR2 to stop threads as compared to using
a SIGSTOP.

Also, fixes a bug in ProcControl testsuite mutatees introduced by a
previous commit. errno needs to be checked immediately after the
syscall that produced the error we care about.
proccontrol/src/freebsd.C
testsuite/src/proccontrol/pcontrol_mutatee_tools.c