[PATCH] Make xsi_sigpause prototype match manpage

Garrett Cooper yanegomi at gmail.com
Mon Jul 19 05:22:30 UTC 2010


    Looks like kib@ checked in a version with the sigdelset fixes for
xsi_sigpause(3). This goes one step further by changing the prototype
to follow the declaration in the manpage.
Thanks,
-Garrett

Index: compat-43/sigcompat.c
===================================================================
--- compat-43/sigcompat.c	(revision 210226)
+++ compat-43/sigcompat.c	(working copy)
@@ -109,19 +109,19 @@
 }

 int
-xsi_sigpause(int sig)
+xsi_sigpause(int sigmask)
 {
 	sigset_t set;
 	int error;

-	if (!_SIG_VALID(sig)) {
+	if (!_SIG_VALID(sigmask)) {
 		errno = EINVAL;
 		return (-1);
 	}
 	error = _sigprocmask(SIG_BLOCK, NULL, &set);
 	if (error != 0)
 		return (error);
-	sigdelset(&set, sig);
+	sigdelset(&set, sigmask);
 	return (_sigsuspend(&set));
 }


More information about the freebsd-hackers mailing list