summaryrefslogtreecommitdiff
path: root/devel/mit-pthreads/patches/patch-bx
blob: f44901bdd9f91cd64e5cb7632a4ef5f43ee382d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$NetBSD: patch-bx,v 1.4 1999/12/28 05:08:12 wiz Exp $
--- stdlib/system.c	Wed Apr 24 20:18:56 1996
+++ stdlib/system.c	Thu Nov 13 11:27:43 1997
@@ -62,7 +62,7 @@
 	argp[2] = (char *) command;
 	sigemptyset(&tmp_mask);
 	sigaddset(&tmp_mask, SIGCHLD);
-	pthread_sigmask(SIG_BLOCK, tmp_mask, &old_mask);
+	pthread_sigmask(SIG_BLOCK, &tmp_mask, &old_mask);
 	switch(pid = fork()) {
 	case -1:			/* error */
 		(void)pthread_sigmask(SIG_SETMASK, &old_mask, NULL);