From: "Steve Simon" <steve@quintile.net>
To: 9fans@9fans.net
Subject: [9fans] rfork and nerrlab - I am confused
Date: Mon, 1 Nov 2010 20:52:31 +0000 [thread overview]
Message-ID: <cc92302f1f708cb94832992d56bedb51@quintile.net> (raw)
Hi,
I am trying to understand the implementation of sysrfork() in
/sys/src/9/port/sysproc.c:90.
When the new process is created p->nerrlab is set to zero,
however when sysrfork() returns,as the new process, poperror() is
called will clean up the error stack after the matching waserror()
before the systemcall was dispatched.
This should the (from my reading of it) draw an error from
/sys/src/9/pc/trap.c:739, which doesn't happen.
so, I am wrong about how it works, but how does it?
Am I expected to understand this?
-Steve
next reply other threads:[~2010-11-01 20:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-01 20:52 Steve Simon [this message]
2010-11-01 21:17 ` Anthony Martin
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=cc92302f1f708cb94832992d56bedb51@quintile.net \
--to=steve@quintile.net \
--cc=9fans@9fans.net \
/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).