public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58815e0
)
init: crunched table not reseting runlevel mask, correct cleanup.
author
Brett Gordon
<beretta42@gmail.com>
Fri, 10 Nov 2017 05:57:32 +0000
(
00:57
-0500)
committer
Brett Gordon
<beretta42@gmail.com>
Fri, 10 Nov 2017 05:57:32 +0000
(
00:57
-0500)
Applications/util/init.c
patch
|
blob
|
history
diff --git
a/Applications/util/init.c
b/Applications/util/init.c
index
22ea117
..
b65be20
100644
(file)
--- a/
Applications/util/init.c
+++ b/
Applications/util/init.c
@@
-285,6
+285,7
@@
static void parse_initline(void)
bad_line();
return;
}
+ *idata = 0;
while (*sdata != ':') {
if (*sdata == '\n' || sdata > sdata_end) {
bad_line();
@@
-482,7
+483,7
@@
static int cleanup_runlevel(uint8_t oldmask, uint8_t newmask, int sig)
while (n < initcount) {
/* Dying ? */
- if ((p[3] & oldmask) && !(p[3] &
&
newmask)) {
+ if ((p[3] & oldmask) && !(p[3] & newmask)) {
/* Count number still to die */
if (p[4] == INIT_RESPAWN && initpid[n].pid) {
/* Group kill */