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/exechttp://msdn.microsoft.com/en-us/library/3xw6zy53.aspx