From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <674d5144a25f273c1f0c640ee7c75e1a@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] thread(2) man page Date: Mon, 3 Sep 2007 09:23:30 -0400 From: Sape Mullender In-Reply-To: <20070903083426.GA942@bricktop.telesystem.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: b52bb408-ead2-11e9-9d60-3106f5b1d025 > just to state it. We have int as return type for procexecl, procexec > in the thread(2) man page and void in /sys/src/libthread/exec.c If it returns at all, there was an error. If it doesn't return, there may or may not be an error, but you won't see it. Exec() probably has the int return value for historical reasons. I've never seen code test for it. What you see is: exec(...); sysfatal("something went badly wrong: %r"); Sape