Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2010 22:22:29 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        hackers@freebsd.org
Subject:   [PATCH] Make xsi_sigpause prototype match manpage
Message-ID:  <AANLkTim96Za04p_1S4KRqv7ZX5LL0hBG0Y9q6PhWfzA2@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
    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));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim96Za04p_1S4KRqv7ZX5LL0hBG0Y9q6PhWfzA2>