projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1ecb083
)
Add lowgtmp("~", "reboot", "~"); to stock init code, from Christoph Robitsch
author
Rick Macklem
<root@snowhite.cis.uoguelph.ca>
Tue, 13 Jul 1993 16:37:57 +0000
(16:37 +0000)
committer
Rick Macklem
<root@snowhite.cis.uoguelph.ca>
Tue, 13 Jul 1993 16:37:57 +0000
(16:37 +0000)
sbin/init/init.c
patch
|
blob
|
blame
|
history
diff --git
a/sbin/init/init.c
b/sbin/init/init.c
index
fd36c16
..
a8bbd45
100644
(file)
--- a/
sbin/init/init.c
+++ b/
sbin/init/init.c
@@
-211,6
+211,7
@@
top:
/* if we are about to be rebooted, then wait for it */
if (WIFSIGNALED(status) && WTERMSIG(status) == SIGKILL)
pause();
/* if we are about to be rebooted, then wait for it */
if (WIFSIGNALED(status) && WTERMSIG(status) == SIGKILL)
pause();
+ logwtmp("~", "reboot", "");
} else { status = 1; sflag = 1; goto top; }
}
signal(SIGTERM, sterm);
} else { status = 1; sflag = 1; goto top; }
}
signal(SIGTERM, sterm);