Bug 13100 – std.process.setCLOEXEC() throws on invalid file descriptor
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2014-07-11T18:51:00Z
Last change time
2014-07-12T00:10:43Z
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2014-07-11T18:51:30Z
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.