Thomas Bushnell BSG <[EMAIL PROTECTED]> writes: > Samuel Thibault <[EMAIL PROTECTED]> writes: > >> Currently, setsid(0) always return 1, while it should return the sid of >> the calling process. Here is a proposed patch: > > I have no particular objection, but what is the standard that > specifies its return value this way?
The glibc manual, I assume: `The `setsid' function returns the new process group ID of the calling process if successful. A return value of `-1' indicates an error. The following `errno' error conditions are defined for this function:' And I would assume the prototype has a pid_t as return type, but I haven't studied the sourcecode of the Hurd to look that up. -- Marco _______________________________________________ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd