diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-09-17 17:52:14 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-10-29 15:38:37 +0100 |
commit | 858148092d1ef755cd40fea0169259e4ad3e9f02 (patch) | |
tree | 850f6521d1e5247290f6e4f958a00a481f9f3389 /src/conftest/conftest.c | |
parent | c6aa606a659704d4a4855a6ab1f698fada9dd77e (diff) | |
download | strongswan-858148092d1ef755cd40fea0169259e4ad3e9f02.tar.bz2 strongswan-858148092d1ef755cd40fea0169259e4ad3e9f02.tar.xz |
Replace usages of sigwait(3) with sigwaitinfo(2)
This is basically the same call, but it has the advantage of being
supported by FreeBSD's valgrind, which sigwait() is not.
References #1106.
Diffstat (limited to 'src/conftest/conftest.c')
-rw-r--r-- | src/conftest/conftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conftest/conftest.c b/src/conftest/conftest.c index 584a2698a..a134d5352 100644 --- a/src/conftest/conftest.c +++ b/src/conftest/conftest.c @@ -563,7 +563,7 @@ int main(int argc, char *argv[]) sigaddset(&set, SIGTERM); sigprocmask(SIG_BLOCK, &set, NULL); - while (sigwait(&set, &sig) == 0) + while ((sig = sigwaitinfo(&set, NULL)) != -1) { switch (sig) { |