Daniel Ramsbrock
2005-09-18 15:09:46 UTC
The project description reads: "A parent process will not be able to
Wait on any process it spawns in the background; the Sys_Wait system
call will return -1 in this case." Currently, Sys_Wait returns -12 on
any failure (two possibilities: 1. the pid doesn't exist, or 2.
g_currentThread is not its owner).
Should we modify it to return -1 in case 2, where g_currentThread is not
is owner? Or is the -1 return code specific to having been spawned in
the background by the caller (i.e. should we keep the pid of the
detached 'parent' somewhere in User_Context and then return -1 ONLY if
that particular 'parent' is trying to wait on us)?
Or am I just reading into this way too much, and we're supposed to
return -1 in all failure cases? (Even though -12, EINVALID does make
more sense than -1, EUNSPECIFIED).
Thanks,
Daniel
Wait on any process it spawns in the background; the Sys_Wait system
call will return -1 in this case." Currently, Sys_Wait returns -12 on
any failure (two possibilities: 1. the pid doesn't exist, or 2.
g_currentThread is not its owner).
Should we modify it to return -1 in case 2, where g_currentThread is not
is owner? Or is the -1 return code specific to having been spawned in
the background by the caller (i.e. should we keep the pid of the
detached 'parent' somewhere in User_Context and then return -1 ONLY if
that particular 'parent' is trying to wait on us)?
Or am I just reading into this way too much, and we're supposed to
return -1 in all failure cases? (Even though -12, EINVALID does make
more sense than -1, EUNSPECIFIED).
Thanks,
Daniel