From: helbig@Informatik.BA-Stuttgart.DE (Wolfgang Helbig)
Subject: [TUHS] In V6 exit(): wakeup(&proc[1])) unnecessary?
Date: Sun, 22 Dec 2002 12:15:01 +0100 (MET) [thread overview]
Message-ID: <200212221317.gBMDHnw00205@bsd.korb> (raw)
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
next reply other threads:[~2002-12-22 11:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-22 11:15 Wolfgang Helbig [this message]
2002-12-22 19:00 ` Mirian Crzig Lennox
2002-12-22 23:01 Wolfgang Helbig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200212221317.gBMDHnw00205@bsd.korb \
--to=helbig@informatik.ba-stuttgart.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).