[TUHS] In V6 exit(): wakeup(&proc[1])) unnecessary?

Wolfgang Helbig helbig at Informatik.BA-Stuttgart.DE
Sun Dec 22 21:15:01 AEST 2002


Hi,
encouraged by the profound answers I thankfully recieved to my previous
question about the Unix V6 kernel, here is another one:

When a process terminates (in sys1.c/exit()), it explicitly wakes up
the init process. In light of the fact, that every process has a parent,
this extra wakeup(&proc[1]) seems unnecessary. Furthermore, the "goto loop:"
at the end of exit() will never be executed.

So is this just defensive programming, or did I miss something?

Greetings,

Wolfgang Helbig




More information about the TUHS mailing list