From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5a41b36e913f59de1dd89b542c8d9a55@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] Booting on slow CPUs From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 15 Mar 2002 15:07:49 -0500 Topicbox-Message-UUID: 682d8cc4-eaca-11e9-9e20-41e7f4b1d025 You need to poperror() on the path where there's no error, thus: if(waserror()){ /* no poperror on this path ... */ return nil; } poperror(); but if(!waserror()){ /* do some stuff... */ poperror(); } /* more stuff */ The second is idiomatic for ``do some stuff, stopping early if you encounter an error; either way, then do more stuff.'' Russ