Re: [9fans] rfork and nerrlab - I am confused

2010-11-01 Thread Anthony Martin
That code path is for the proc that called rfork(). The new child proc returns through forkchild().

[9fans] rfork and nerrlab - I am confused

2010-11-01 Thread Steve Simon
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 th