std.process.execute performance without Config.inheritFDs
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jul 3 07:53:26 PDT 2017
On Monday, 3 July 2017 at 14:48:38 UTC, Jonathan Shamir wrote:
> if (!(config & Config.inheritFDs))
> {
> import core.sys.posix.sys.resource;
> rlimit r;
> getrlimit(RLIMIT_NOFILE, &r);
> foreach (i; 3 .. cast(int) r.rlim_cur) close(i);
> }
That code is pretty old. std.process was changed to use poll when
available over a year ago:
https://github.com/dlang/phobos/pull/4114
Update your D installation?
More information about the Digitalmars-d
mailing list