Skip to contentSkip to conversation

syscalls/ptrace05: skip internally used signals

PATCH New Steve Muckle 2 participants 2 messages Oct 24, 2018 – Nov 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/ptrace05: skip internally used signals

Some signals may be internally used by the C library. Do not attempt to test these.

---
 testcases/kernel/syscalls/ptrace/ptrace05.c | 3 +++
 1 file changed, 3 insertions(+)
testcases/kernel/syscalls/ptrace/ptrace05.c +3 -0
index 22261f3df..420330029 100644
@@ -71,6 +71,9 @@ int main(int argc, char **argv)
 
 	for (signum = start_signum; signum <= end_signum; signum++) {
 
+		if (signum >= __SIGRTMIN && signum < SIGRTMIN)
+			continue;
+
 		switch (child = fork()) {
 		case -1:
 			tst_brkm(TBROK | TERRNO, NULL, "fork() failed");
Signature · 1 line
2.19.1.568.g152ad8e336-goog
Applied
#1 lore raw

PATCH 1/1 syscalls/ptrace05: skip internally used signals

Hi!

Quoted 10 lines
---
 testcases/kernel/syscalls/ptrace/ptrace05.c | 3 +++
 1 file changed, 3 insertions(+)
testcases/kernel/syscalls/ptrace/ptrace05.c +0 -0
index 22261f3df..420330029 100644

testcases/kernel/syscalls/ptrace/ptrace05.c int main(int argc, char **argv) · line 75

Quoted 5 lines
testcases/kernel/syscalls/ptrace/ptrace05.c +2 -0
@@ -71,6 +71,9 @@ int main(int argc, char **argv)
 
 	for (signum = start_signum; signum <= end_signum; signum++) {
 
+		if (signum >= __SIGRTMIN && signum < SIGRTMIN)
+			continue;

I'm a bit worried about using the libc internal __SIGRTMIN but I doubt that we can get this information elsewhere.

Applied, thanks.

Signature · 2 lines
Cyril Hrubis
[email protected]