September 22, 2012 [Issue 8708] New: Documentation for std.process.exec family is inaccurate | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8708 Summary: Documentation for std.process.exec family is inaccurate Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: jmdavisProg@gmx.com --- Comment #0 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-09-22 16:15:35 PDT --- It implies that the exec* functions return upon success, which they do not. Rather, the new process replaces the current process, and they only return if the exec* call fails. To quote the man page: > The exec() functions only return if an error has have occurred. The return value is -1, and errno is set to indicate the error. http://linux.die.net/man/3/exec http://msdn.microsoft.com/en-us/library/3xw6zy53.aspx -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 24, 2012 [Issue 8708] Documentation for std.process.exec family is inaccurate | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | http://d.puremagic.com/issues/show_bug.cgi?id=8708 Greg Ward <greg@gerg.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greg@gerg.ca --- Comment #1 from Greg Ward <greg@gerg.ca> 2012-09-24 08:31:37 PDT --- Coincidentally, I discovered this doc bug at about the same time. So I submitted a pull request: https://github.com/D-Programming-Language/phobos/pull/812 . -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation