Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107313169
D36356.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
592 B
Referenced Files
None
Subscribers
None
D36356.diff
View Options
diff --git a/sbin/init/init.c b/sbin/init/init.c
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -1143,10 +1143,10 @@
do {
if ((wpid = waitpid(-1, &status, WUNTRACED)) != -1)
collect_child(wpid);
+ if (requested_transition == death_single ||
+ requested_transition == reroot)
+ return (state_func_t) requested_transition;
if (wpid == -1) {
- if (requested_transition == death_single ||
- requested_transition == reroot)
- return (state_func_t) requested_transition;
if (errno == EINTR)
continue;
warning("wait for %s on %s failed: %m; going to "
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 9:32 AM (20 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15780295
Default Alt Text
D36356.diff (592 B)
Attached To
Mode
D36356: init: fix shutdown race
Attached
Detach File
Event Timeline
Log In to Comment