public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] crash02: Blacklist the pause() syscall
@ 2020-05-21 11:01 Martin Doucha
  2020-05-25  4:47 ` Petr Vorel
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Doucha @ 2020-05-21 11:01 UTC (permalink / raw)
  To: ltp

pause() causes the calling process/thread to sleep indefinitely until waken up
by a signal. This will cause test timeouts.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/misc/crash/crash02.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/misc/crash/crash02.c b/testcases/misc/crash/crash02.c
index f69edf7e1..e46c2aa66 100644
--- a/testcases/misc/crash/crash02.c
+++ b/testcases/misc/crash/crash02.c
@@ -473,6 +473,9 @@ int in_blacklist(int sysno)
 #endif
 #if defined(__NR_vhangup) && __NR_vhangup
 		__NR_vhangup,	/* int vhangup(void); - terminal logout */
+#endif
+#if defined(__NR_pause) && __NR_pause
+		__NR_pause,	/* int pause(void); - sleep indefinitely */
 #endif
 		-1
 	};
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-25  4:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-21 11:01 [LTP] [PATCH] crash02: Blacklist the pause() syscall Martin Doucha
2020-05-25  4:47 ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox