Re: hang from HUP'ing init in linuxrc

From: David S. Miller (
Date: Mon Jul 02 2001 - 03:48:16 EST

Paul Mackerras writes:
> What was happening was rather interesting. The init process was stuck
> inside prepare_namespace(), in the while loop here (this is lines 749
> - 751 of init/main.c):
> pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD);
> if (pid>0)
> while (pid != wait(&i));
 [ no signal delivery due to returning to kernel space, blah blah blah
   :-) ]

For 2.4.x I'd just check for sigpending in this wait loop.

Longer term (ie. 2.5.x and onward) we should look into ideas like those
mentioned by Ben. I for one would not complain about seeing dhcp
getting removed from the kernel :-)

David S. Miller

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:09 EST