www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13100] New: std.process.setCLOEXEC() throws on invalid file

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 puremagic.com
          Reporter: bugzilla 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.

--
Jul 11 2014