Skip to contentSkip to conversation

waitpid01: Test all standard deadly signals

PATCH In review Martin Doucha 2 participants 12 messages Jan 30, 2024 – Feb 6, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 waitpid01: Test all standard deadly signals

Extend waitpid01 to test all standard signals that kill the target process unless caught. Also remove waitpid02 since testing SIGFPE in waitpid01 makes it redundant.

---
 runtest/syscalls                              |   1 -
 testcases/kernel/syscalls/waitpid/.gitignore  |   1 -
 testcases/kernel/syscalls/waitpid/waitpid01.c |  60 +++++--
 testcases/kernel/syscalls/waitpid/waitpid02.c | 167 ------------------
 4 files changed, 47 insertions(+), 182 deletions(-)
 delete mode 100644 testcases/kernel/syscalls/waitpid/waitpid02.c
runtest/syscalls +0 -1
index 6e2407879..98f31c1ee 100644
@@ -1708,7 +1708,6 @@ wait402 wait402
 wait403 wait403
 
 waitpid01 waitpid01
-waitpid02 waitpid02
 waitpid03 waitpid03
 waitpid04 waitpid04
 waitpid05 waitpid05
testcases/kernel/syscalls/waitpid/.gitignore +0 -1
index cf9ddf6fa..2fac142c7 100644
@@ -1,5 +1,4 @@
 /waitpid01
-/waitpid02
 /waitpid03
 /waitpid04
 /waitpid05
testcases/kernel/syscalls/waitpid/waitpid01.c +47 -13

88 lines not on this page · raw message

testcases/kernel/syscalls/waitpid/waitpid02.c deleted +0 -167

167 lines not on this page · raw message

Signature · 5 lines
2.42.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw

Hi Martin,

nice work.

...

testcases/kernel/syscalls/waitpid/waitpid01.c line 5

Quoted 3 lines

+++ b/testcases/kernel/syscalls/waitpid/waitpid01.c

testcases/kernel/syscalls/waitpid/waitpid01.c +0 -0
@@ -5,25 +5,57 @@
  * Copyright (c) 2018 Cyril Hrubis <[email protected]>

Very nice cleanup, you deserve copyright, right?
* Copyright (C) 2024 SUSE LLC <[email protected]>

Quoted 16 lines
(quoted diff) +0 -0
  */
 

Extend waitpid01 to test all standard signals that kill the target process unless caught. Also remove waitpid02 since testing SIGFPE in waitpid01 makes it redundant.

testcases/kernel/syscalls/waitpid/waitpid01.c +11 -0
+static int testcase_list[] = {
+	SIGABRT,
+	SIGALRM,
+	SIGBUS,
+	SIGFPE,
+	SIGHUP,
+	SIGILL,
+	SIGINT,
+	SIGKILL,
+	SIGPIPE,
+	SIGPOLL,

testcases/kernel/syscalls/waitpid/waitpid01.c line 41

Quoted 10 lines
testcases/kernel/syscalls/waitpid/waitpid01.c +10 -0
+	SIGPROF,
+	SIGQUIT,
+	SIGSEGV,
+	SIGSYS,
+	SIGTERM,
+	SIGTRAP,
+	SIGVTALRM,
+	SIGXCPU,
+	SIGXFSZ
+};

I suppose you ignored from the list of signals in man signal(7) these with action "Core" "Term" unless without standard ("-"), right?
So user defined signals (SIGUSR1, SIGUSR2) does not make sense to test?

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw
Quoted 6 lines · Petr Vorel

Hi Martin,

nice work.

Quoted 8 lines

...

testcases/kernel/syscalls/waitpid/waitpid01.c line 5

Quoted 3 lines

+++ b/testcases/kernel/syscalls/waitpid/waitpid01.c

testcases/kernel/syscalls/waitpid/waitpid01.c +0 -0
@@ -5,25 +5,57 @@
   * Copyright (c) 2018 Cyril Hrubis <[email protected]>

Very nice cleanup, you deserve copyright, right?
* Copyright (C) 2024 SUSE LLC <[email protected]>

Quoted 1 line
(quoted diff) +0 -0
   */

It's not that big of a change.

Quoted 21 lines
Quoted 21 lines

Extend waitpid01 to test all standard signals that kill the target process unless caught. Also remove waitpid02 since testing SIGFPE in waitpid01 makes it redundant.

testcases/kernel/syscalls/waitpid/waitpid01.c +17 -0
+static int testcase_list[] = {
+	SIGABRT,
+	SIGALRM,
+	SIGBUS,
+	SIGFPE,
+	SIGHUP,
+	SIGILL,
+	SIGINT,
+	SIGKILL,
+	SIGPIPE,
+	SIGPOLL,
+	SIGPROF,
+	SIGQUIT,
+	SIGSEGV,
+	SIGSYS,
+	SIGTERM,
+	SIGTRAP,
Quoted 8 lines

testcases/kernel/syscalls/waitpid/waitpid01.c line 41

Quoted 4 lines
testcases/kernel/syscalls/waitpid/waitpid01.c +4 -0
+	SIGVTALRM,
+	SIGXCPU,
+	SIGXFSZ
+};

I suppose you ignored from the list of signals in man signal(7) these with action "Core" "Term" unless without standard ("-"), right?
So user defined signals (SIGUSR1, SIGUSR2) does not make sense to test?

I've skipped all non-standard signals (some of which are just aliases for standard ones) and I think it's better to avoid SIGUSR* since we use them internally. But we could also add signal(sig, SIG_DFL); before raise() and add SIGUSR* to the list.

Quoted 2 lines

Kind regards,
Petr

Signature · 11 lines
Martin Doucha   [email protected]
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#3 lore raw
Quoted 14 lines · Petr Vorel
Quoted 13 lines

Hi Martin,

nice work.

...

testcases/kernel/syscalls/waitpid/waitpid01.c line 5

Quoted 3 lines

+++ b/testcases/kernel/syscalls/waitpid/waitpid01.c

testcases/kernel/syscalls/waitpid/waitpid01.c +0 -0
@@ -5,25 +5,57 @@
   * Copyright (c) 2018 Cyril Hrubis <[email protected]>

Very nice cleanup, you deserve copyright, right?
* Copyright (C) 2024 SUSE LLC <[email protected]>

Quoted 3 lines
Quoted 1 line

Review line 6

Quoted 1 line
(quoted diff) +0 -0
   */

It's not that big of a change.

ack.

Quoted 29 lines
Quoted 20 lines
Quoted 20 lines

Extend waitpid01 to test all standard signals that kill the target process unless caught. Also remove waitpid02 since testing SIGFPE in waitpid01 makes it redundant.

testcases/kernel/syscalls/waitpid/waitpid01.c +17 -0
+static int testcase_list[] = {
+	SIGABRT,
+	SIGALRM,
+	SIGBUS,
+	SIGFPE,
+	SIGHUP,
+	SIGILL,
+	SIGINT,
+	SIGKILL,
+	SIGPIPE,
+	SIGPOLL,
+	SIGPROF,
+	SIGQUIT,
+	SIGSEGV,
+	SIGSYS,
+	SIGTERM,
+	SIGTRAP,
Quoted 8 lines

testcases/kernel/syscalls/waitpid/waitpid01.c line 41

Quoted 4 lines
testcases/kernel/syscalls/waitpid/waitpid01.c +4 -0
+	SIGVTALRM,
+	SIGXCPU,
+	SIGXFSZ
+};

I suppose you ignored from the list of signals in man signal(7) these with action "Core" "Term" unless without standard ("-"), right?
So user defined signals (SIGUSR1, SIGUSR2) does not make sense to test?

Quoted 4 lines

I've skipped all non-standard signals (some of which are just aliases for standard ones) and I think it's better to avoid SIGUSR* since we use them internally. But we could also add signal(sig, SIG_DFL); before raise() and add SIGUSR* to the list.

Thanks for info. Feel free to send v2 (or let me know to wait). Otherwise I'll merge it in the evening or tomorrow.

Kind regards,
Petr

Quoted 2 lines
Quoted 2 lines

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#4 lore raw
Quoted 7 lines · Petr Vorel
Quoted 4 lines

I've skipped all non-standard signals (some of which are just aliases for standard ones) and I think it's better to avoid SIGUSR* since we use them internally. But we could also add signal(sig, SIG_DFL); before raise() and add SIGUSR* to the list.

Thanks for info. Feel free to send v2 (or let me know to wait). Otherwise I'll merge it in the evening or tomorrow.

Actually, let's just add SIGUSR1 and SIGUSR2 to the testcase list and merge. The LTP library signal handlers are reset to SIG_DFL in fork_testrun() so no special handling in the test is needed.

Signature · 11 lines
Martin Doucha   [email protected]
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#5 lore raw

Hi Martin,

Quoted 6 lines · Petr Vorel
Quoted 4 lines
Quoted 4 lines

I've skipped all non-standard signals (some of which are just aliases for standard ones) and I think it's better to avoid SIGUSR* since we use them internally. But we could also add signal(sig, SIG_DFL); before raise() and add SIGUSR* to the list.

Quoted 6 lines
Quoted 2 lines

Thanks for info. Feel free to send v2 (or let me know to wait). Otherwise I'll merge it in the evening or tomorrow.

Actually, let's just add SIGUSR1 and SIGUSR2 to the testcase list and merge. The LTP library signal handlers are reset to SIG_DFL in fork_testrun() so no special handling in the test is needed.

Good, merged. Thank you!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#6 lore raw
In reply to Martin Doucha

Hi Martin,

first this change (merged as ed5ccf6c1 ("waitpid01: Test all standard deadly signals") is failing on 6.6 on Debian:

ed5ccf6c1 ("waitpid01: Test all standard deadly signals")

waitpid01.c:88: TINFO: Testing child: raise(sig) waitpid01.c:109: TPASS: waitpid() returned correct pid 236064 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGIOT/SIGABRT waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236071 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGALRM waitpid01.c:109: TPASS: waitpid() returned correct pid 236072 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGBUS waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236082 waitpid01.c:113: TFAIL: WIFSIGNALED() not set in status (exited with 0)
...
waitpid01.c:88: TINFO: Testing child: kill(getpid(), sig) waitpid01.c:109: TPASS: waitpid() returned correct pid 236165 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGIOT/SIGABRT waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236176 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGALRM waitpid01.c:109: TPASS: waitpid() returned correct pid 236177 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGBUS waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236187 waitpid01.c:113: TFAIL: WIFSIGNALED() not set in status (exited with 0)
...

But it works on 6.8.0-rc1-2.gf4ba5db-default Tumbleweed, which I tested it before.

Also patch does not apply. I had to patch waitpid01 myself, hopefully I did that correctly [1].

Kind regards,
Petr

[1] https://github.com/pevik/ltp/blob/mdoucha/waitpid05/testcases/kernel/syscalls/waitpid/waitpid01.c

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#7 lore raw
Quoted 7 lines

Hi Martin,

first this change (merged as ed5ccf6c1 ("waitpid01: Test all standard deadly signals") is failing on 6.6 on Debian:

ed5ccf6c1 ("waitpid01: Test all standard deadly signals")

Quoted 14 lines

waitpid01.c:88: TINFO: Testing child: raise(sig) waitpid01.c:109: TPASS: waitpid() returned correct pid 236064 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGIOT/SIGABRT waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236071 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGALRM waitpid01.c:109: TPASS: waitpid() returned correct pid 236072 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGBUS waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236082 waitpid01.c:113: TFAIL: WIFSIGNALED() not set in status (exited with 0)

=> FYI it's SIGFPE (it would help readability to either print tst_strsig(sig) for each failure or as TINFO before testing).

I tested other Debian (5.10 and 6.1) and they work, I wonder what is the problem.

Kind regards,
Petr

Quoted 27 lines

...
waitpid01.c:88: TINFO: Testing child: kill(getpid(), sig) waitpid01.c:109: TPASS: waitpid() returned correct pid 236165 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGIOT/SIGABRT waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236176 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGALRM waitpid01.c:109: TPASS: waitpid() returned correct pid 236177 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGBUS waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236187 waitpid01.c:113: TFAIL: WIFSIGNALED() not set in status (exited with 0)
...

But it works on 6.8.0-rc1-2.gf4ba5db-default Tumbleweed, which I tested it before.

Also patch does not apply. I had to patch waitpid01 myself, hopefully I did that correctly [1].

Kind regards,
Petr

[1] https://github.com/pevik/ltp/blob/mdoucha/waitpid05/testcases/kernel/syscalls/waitpid/waitpid01.c

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#8 lore raw
In reply to Petr Vorel
Quoted 38 lines · Petr Vorel

Hi Martin,

first this change (merged as ed5ccf6c1 ("waitpid01: Test all standard deadly signals") is failing on 6.6 on Debian:

ed5ccf6c1 ("waitpid01: Test all standard deadly signals")

waitpid01.c:88: TINFO: Testing child: raise(sig) waitpid01.c:109: TPASS: waitpid() returned correct pid 236064 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGIOT/SIGABRT waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236071 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGALRM waitpid01.c:109: TPASS: waitpid() returned correct pid 236072 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGBUS waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236082 waitpid01.c:113: TFAIL: WIFSIGNALED() not set in status (exited with 0)
...
waitpid01.c:88: TINFO: Testing child: kill(getpid(), sig) waitpid01.c:109: TPASS: waitpid() returned correct pid 236165 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGIOT/SIGABRT waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236176 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGALRM waitpid01.c:109: TPASS: waitpid() returned correct pid 236177 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGBUS waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236187 waitpid01.c:113: TFAIL: WIFSIGNALED() not set in status (exited with 0)
...

Quoted 2 lines

But it works on 6.8.0-rc1-2.gf4ba5db-default Tumbleweed, which I tested it before.

I've tested the patch on kernel v6.6.1 on Tumbleweed and all testcases pass. The failure shows that SIGFPE doesn't trigger coredump for some reason, that's either a system bug or some parent process left over a SIGFPE handler. Could you try the Debian test again with this patch?

testcases/kernel/syscalls/waitpid/waitpid01.c +3 -0
index 367f7875c..a42b7e8ac 100644
@@ -94,6 +94,9 @@ static void run(unsigned int n)
        int status;
        const struct testcase *tc = testcase_list + n;
 
+       if (tc->sig != SIGKILL)
+               SAFE_SIGNAL(tc->sig, SIG_DFL);
+
        pid = SAFE_FORK();
        if (!pid)
                variant_list[tst_variant].func(tc->sig);
Signature · 11 lines
Martin Doucha   [email protected]
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#9 lore raw

Hi Martin,

Quoted 53 lines · Petr Vorel
Quoted 38 lines

Hi Martin,

first this change (merged as ed5ccf6c1 ("waitpid01: Test all standard deadly signals") is failing on 6.6 on Debian:

ed5ccf6c1 ("waitpid01: Test all standard deadly signals")

waitpid01.c:88: TINFO: Testing child: raise(sig) waitpid01.c:109: TPASS: waitpid() returned correct pid 236064 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGIOT/SIGABRT waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236071 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGALRM waitpid01.c:109: TPASS: waitpid() returned correct pid 236072 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGBUS waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236082 waitpid01.c:113: TFAIL: WIFSIGNALED() not set in status (exited with 0)
...
waitpid01.c:88: TINFO: Testing child: kill(getpid(), sig) waitpid01.c:109: TPASS: waitpid() returned correct pid 236165 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGIOT/SIGABRT waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236176 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGALRM waitpid01.c:109: TPASS: waitpid() returned correct pid 236177 waitpid01.c:118: TPASS: WIFSIGNALED() set in status waitpid01.c:126: TPASS: WTERMSIG() == SIGBUS waitpid01.c:143: TPASS: Child dumped core as expected waitpid01.c:109: TPASS: waitpid() returned correct pid 236187 waitpid01.c:113: TFAIL: WIFSIGNALED() not set in status (exited with 0)
...

Quoted 2 lines

But it works on 6.8.0-rc1-2.gf4ba5db-default Tumbleweed, which I tested it before.

I've tested the patch on kernel v6.6.1 on Tumbleweed and all testcases pass. The failure shows that SIGFPE doesn't trigger coredump for some reason, that's either a system bug or some parent process left over a SIGFPE handler. Could you try the Debian test again with this patch?

testcases/kernel/syscalls/waitpid/waitpid01.c +0 -0
index 367f7875c..a42b7e8ac 100644

testcases/kernel/syscalls/waitpid/waitpid01.c static void run(unsigned int n) · line 99

Quoted 6 lines
testcases/kernel/syscalls/waitpid/waitpid01.c +3 -0
@@ -94,6 +94,9 @@ static void run(unsigned int n)
        int status;
        const struct testcase *tc = testcase_list + n;
 
+       if (tc->sig != SIGKILL)
+               SAFE_SIGNAL(tc->sig, SIG_DFL);
+

Ah, reset the signal, thanks!

It works on the current master, but because different patch would broke your waiting waitpid01 patch, so that I'll review and merge it first.

Will you send this as a patch or should I merge this as your Suggested-by: ?

Kind regards,
Petr

Quoted 3 lines
testcases/kernel/syscalls/waitpid/waitpid01.c +0 -0
        pid = SAFE_FORK();
        if (!pid)
                variant_list[tst_variant].func(tc->sig);
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#10 lore raw
Quoted 16 lines · Petr Vorel

Hi Martin,

testcases/kernel/syscalls/waitpid/waitpid01.c static void run(unsigned int n) · line 99

Quoted 13 lines · Petr Vorel
testcases/kernel/syscalls/waitpid/waitpid01.c +3 -0
index 367f7875c..a42b7e8ac 100644
@@ -94,6 +94,9 @@ static void run(unsigned int n)
         int status;
         const struct testcase *tc = testcase_list + n;
 
+       if (tc->sig != SIGKILL)
+               SAFE_SIGNAL(tc->sig, SIG_DFL);
+
Quoted 6 lines

Ah, reset the signal, thanks!

It works on the current master, but because different patch would broke your waiting waitpid01 patch, so that I'll review and merge it first.

Will you send this as a patch or should I merge this as your Suggested-by: ?

You can add it to the waiting waitpid01 patch and push it together as a single commit.

Signature · 11 lines
Martin Doucha   [email protected]
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#11 lore raw
Quoted 19 lines · Petr Vorel
Quoted 17 lines

Hi Martin,

testcases/kernel/syscalls/waitpid/waitpid01.c static void run(unsigned int n) · line 99

Quoted 13 lines · Petr Vorel
testcases/kernel/syscalls/waitpid/waitpid01.c +3 -0
index 367f7875c..a42b7e8ac 100644
@@ -94,6 +94,9 @@ static void run(unsigned int n)
         int status;
         const struct testcase *tc = testcase_list + n;
 
+       if (tc->sig != SIGKILL)
+               SAFE_SIGNAL(tc->sig, SIG_DFL);
+

Ah, reset the signal, thanks!

Quoted 7 lines
Quoted 4 lines

It works on the current master, but because different patch would broke your waiting waitpid01 patch, so that I'll review and merge it first.

Will you send this as a patch or should I merge this as your Suggested-by: ?

You can add it to the waiting waitpid01 patch and push it together as a single commit.

Ideally this would be a separate fix in case of revert, but yeah, I'll add it to your next patch. Thanks!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp