From 6805d5d69e9c2be264e62cf53c86ca3e5a929d31 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 9 Dec 1999 22:39:55 +0000 Subject: Adjustments for Johns init stuff, -Erik --- halt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'halt.c') diff --git a/halt.c b/halt.c index ecc6e8f30..23eb23c30 100644 --- a/halt.c +++ b/halt.c @@ -26,6 +26,7 @@ extern int halt_main(int argc, char ** argv) { - exit( kill(1, SIGUSR1)); + /* don't assume init's pid == 1 */ + exit( kill(findInitPid(), SIGUSR1)); } -- cgit v1.2.3