|
From: Tom H. <th...@cy...> - 2004-11-16 12:09:56
|
CVS commit by thughes:
Use sigprocmask(SIG_SETMASK) to make sure the signal mask is in a
known state before performing the test. This is done because perl on
some systems leaves some signals blocked when starting child
processes which can cause this test to fail.
M +6 -0 sigprocmask.c 1.2
--- valgrind/memcheck/tests/sigprocmask.c #1.1:1.2
@@ -22,4 +22,10 @@ int main(void)
os = &x[4];
+ // Make sure the system is in a known state with no signals
+ // blocked as perl has been known to leave some signals blocked
+ // when starting child processes which can cause failures in
+ // this test unless we reset things here.
+ syscall(__NR_sigprocmask, SIG_SETMASK, os, NULL);
+
fprintf(stderr, "before\n");
for (i = 0; i < 6; i++) {
|