From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Steve Simon" Date: Mon, 1 Nov 2010 20:52:31 +0000 To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] rfork and nerrlab - I am confused Topicbox-Message-UUID: 749dd6b0-ead6-11e9-9d60-3106f5b1d025 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