* [9fans] thread(2) man page
@ 2007-09-03 8:34 Markus Sonderegger
2007-09-03 13:23 ` Sape Mullender
0 siblings, 1 reply; 3+ messages in thread
From: Markus Sonderegger @ 2007-09-03 8:34 UTC (permalink / raw)
To: 9fans
Hi,
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
Regards
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] thread(2) man page
2007-09-03 8:34 [9fans] thread(2) man page Markus Sonderegger
@ 2007-09-03 13:23 ` Sape Mullender
2007-09-04 15:42 ` Douglas A. Gwyn
0 siblings, 1 reply; 3+ messages in thread
From: Sape Mullender @ 2007-09-03 13:23 UTC (permalink / raw)
To: 9fans
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] thread(2) man page
2007-09-03 13:23 ` Sape Mullender
@ 2007-09-04 15:42 ` Douglas A. Gwyn
0 siblings, 0 replies; 3+ messages in thread
From: Douglas A. Gwyn @ 2007-09-04 15:42 UTC (permalink / raw)
To: 9fans
Sape Mullender wrote:
> Exec() probably has the int return value for historical reasons.
It was a natural consequence of using common code for (almost)
all error returns in the system library.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-04 15:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-03 8:34 [9fans] thread(2) man page Markus Sonderegger
2007-09-03 13:23 ` Sape Mullender
2007-09-04 15:42 ` Douglas A. Gwyn
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).