summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2003-04-02 22:13:56 +0000
committerRobert Watson <rwatson@FreeBSD.org>2003-04-02 22:13:56 +0000
commit6ab0d6c22064438f76e1a7aba89bdaed6ec848cc (patch)
tree0a334b4c337f551d83060683756e0aed105bc73e
parent6751370f6f52a82f9950eaf7e63b611830d38f29 (diff)
Notes
-rw-r--r--sbin/reboot/reboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index b30582d2116fd..09f52fd1d4b4f 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -164,7 +164,7 @@ main(int argc, char *argv[])
(void)signal(SIGHUP, SIG_IGN);
/* Send a SIGTERM first, a chance to save the buffers. */
- if (kill(-1, SIGTERM) == -1)
+ if (kill(-1, SIGTERM) == -1 && errno != ESRCH)
err(1, "SIGTERM processes");
/*