summaryrefslogtreecommitdiffstats
path: root/sbin/shutdown
diff options
context:
space:
mode:
authorats <ats@FreeBSD.org>1994-11-27 23:52:13 +0000
committerats <ats@FreeBSD.org>1994-11-27 23:52:13 +0000
commitffea1bbfcc3c9344f20891104df05cc9a2a322d2 (patch)
treec1d6904e001398683dc229db2fa4e974331e4e5a /sbin/shutdown
parent9beb2cb7dba793c8bf3482ac94ffb5bcd7dd9114 (diff)
downloadFreeBSD-src-ffea1bbfcc3c9344f20891104df05cc9a2a322d2.zip
FreeBSD-src-ffea1bbfcc3c9344f20891104df05cc9a2a322d2.tar.gz
Submitted by: M.C. Wong
Obtained from: Don't throw away the /etc/nologin file in the -k case.
Diffstat (limited to 'sbin/shutdown')
-rw-r--r--sbin/shutdown/shutdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index c63ba65..2911bad 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -330,7 +330,7 @@ die_you_gravy_sucking_pig_dog()
(void)printf("\r\nSystem shutdown time has arrived\007\007\r\n");
if (killflg) {
(void)printf("\rbut you'll have to do it yourself\r\n");
- finish(0);
+ exit(0);
}
if (dofast)
doitfast();
OpenPOWER on IntegriCloud