[PATCH 02/23] Send quit signal to process, not process group
Valerie Aurora
val at versity.com
Fri Apr 4 11:45:18 PDT 2025
The quit command in debugfs was sending a signal to every process in
the process group (using 0 for pid argument of kill()), which breaks
the ngnfs tests scripts because the shell script running debugfs is
part of the same process group and gets the signal too. Send the
signal only to this process, instead.
Signed-off-by: Valerie Aurora <val at versity.com>
---
cli/debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cli/debugfs.c b/cli/debugfs.c
index 1972f13..0b2223a 100644
--- a/cli/debugfs.c
+++ b/cli/debugfs.c
@@ -246,7 +246,7 @@ out:
free(line);
free(line_argv);
ctx->ret = ret;
- kill(0, SIGUSR1);
+ kill(getpid(), SIGUSR1);
}
/*
--
2.48.1
More information about the ngnfs-devel
mailing list