[Issue 13100] New: std.process.setCLOEXEC() throws on invalid file descriptor

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 11 11:51:30 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13100

          Issue ID: 13100
           Summary: std.process.setCLOEXEC() throws on invalid file
                    descriptor
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at kyllingen.net

This is based on a report I received by e-mail from a D user.

If a program that calls spawnProcess() is run in an environment where one or
more of the standard streams are closed, the setCLOEXEC() function will throw
an exception and the child process will terminate.

I will send a pull request that fixes this shortly.

--


More information about the Digitalmars-d-bugs mailing list