Bug 8708 – Documentation for std.process.exec family is inaccurate

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-22T16:15:00Z
Last change time
2015-06-09T01:31:23Z
Assigned to
nobody
Creator
issues.dlang

Comments

Comment #0 by issues.dlang — 2012-09-22T16:15:35Z
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
Comment #1 by greg — 2012-09-24T08:31:37Z
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 .
Comment #2 by dlang-bugzilla — 2014-09-09T13:53:41Z
Pull was merged, fixed I guess.