summaryrefslogtreecommitdiff
path: root/src/test/test-signal-util.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-08-14 09:16:16 +0200
committerSven Eden <yamakuzure@gmx.net>2017-08-14 09:20:58 +0200
commit7dee75c3e92339d219732cf4908e40380c31c0bf (patch)
treec1fb4503739ccbd93bfc2b9bd9a708cbc160c6ea /src/test/test-signal-util.c
parentc8ef5e16e109c9082605e43e3ad0531dfb87a85c (diff)
Prep v235: Apply upstream fixes (9/10) [src/test]
Diffstat (limited to 'src/test/test-signal-util.c')
-rw-r--r--src/test/test-signal-util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test-signal-util.c b/src/test/test-signal-util.c
index 671eb869c..92e392778 100644
--- a/src/test/test-signal-util.c
+++ b/src/test/test-signal-util.c
@@ -50,12 +50,12 @@ static void test_block_signals(void) {
static void test_ignore_signals(void) {
assert_se(ignore_signals(SIGINT, -1) >= 0);
- assert_se(kill(getpid(), SIGINT) >= 0);
+ assert_se(kill(getpid_cached(), SIGINT) >= 0);
assert_se(ignore_signals(SIGUSR1, SIGUSR2, SIGTERM, SIGPIPE, -1) >= 0);
- assert_se(kill(getpid(), SIGUSR1) >= 0);
- assert_se(kill(getpid(), SIGUSR2) >= 0);
- assert_se(kill(getpid(), SIGTERM) >= 0);
- assert_se(kill(getpid(), SIGPIPE) >= 0);
+ assert_se(kill(getpid_cached(), SIGUSR1) >= 0);
+ assert_se(kill(getpid_cached(), SIGUSR2) >= 0);
+ assert_se(kill(getpid_cached(), SIGTERM) >= 0);
+ assert_se(kill(getpid_cached(), SIGPIPE) >= 0);
assert_se(default_signals(SIGINT, SIGUSR1, SIGUSR2, SIGTERM, SIGPIPE, -1) >= 0);
}