1 --- pause.c.orig 2009-11-07 14:51:38.000000000 -0800
2 +++ pause.c 2009-11-07 14:51:40.000000000 -0800
4 #if defined(LIBC_SCCS) && !defined(lint)
5 static char sccsid[] = "@(#)pause.c 8.1 (Berkeley) 6/4/93";
6 #endif /* LIBC_SCCS and not lint */
8 +/* For the cancelable variant, we call the cancelable sigsuspend */
9 +#ifdef VARIANT_CANCELABLE
10 +#undef __DARWIN_NON_CANCELABLE
11 +#define __DARWIN_NON_CANCELABLE 0
12 +#endif /* VARIANT_CANCELABLE */
14 #include <sys/cdefs.h>
15 __FBSDID("$FreeBSD: src/lib/libc/gen/pause.c,v 1.7 2007/01/09 00:27:54 imp Exp $");
17 @@ -42,7 +49,10 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/pau
21 - return sigpause(sigblock(0L));
24 + sigprocmask(0, NULL, &set);
25 + return sigsuspend(&set);
27 __weak_reference(__pause, pause);
28 __weak_reference(__pause, _pause);