www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8708] New: Documentation for std.process.exec family is inaccurate

reply d-bugmail puremagic.com writes:
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



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: -------
Sep 22 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8708


Greg Ward <greg gerg.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greg gerg.ca



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: -------
Sep 24 2012