From a0f8df5b65887f1c51f829955eccaed6ec56774b Mon Sep 17 00:00:00 2001 From: Ike Panhc Date: Wed, 19 Apr 2023 15:20:18 +0800 Subject: [PATCH] stress-flock: use SIGALRM instead of SIGKILL BugLink: https://bugs.launchpad.net/bugs/2016966 Just like bug 1999731 and its fix efb0ad344e73. Sometimes flock stressor fails and returns 7. Using SIGALRM instead of SIGKILL can fix this issue. Signed-off-by: Ike Panhc --- stress-flock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stress-flock.c b/stress-flock.c index d6ad6925..bef70266 100644 --- a/stress-flock.c +++ b/stress-flock.c @@ -304,7 +304,7 @@ reap: if (pids[i] > 0) { int status; - (void)kill(pids[i], SIGKILL); + (void)kill(pids[i], SIGALRM); (void)shim_waitpid(pids[i], &status, 0); } } -- 2.34.1