https://issues.dlang.org/show_bug.cgi?id=13727
Jonathan Marler <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #17 from Jonathan Marler <[email protected]> --- The new `build.d` script in dmd is running into these issues. I simplified where it's getting stuck into 3 versions with this code snippet: import std.stdio, std.algorithm, std.array, std.process, std.exception, std.parallelism; void main() { auto funcs = [() { // std.exception.ErrnoException@std\stdio.d(997): Enforcement failed (No error) version (a) ["git", "--version"].execute; // std.exception.ErrnoException@std\stdio.d(563): Could not close file `HANDLE(C0)' (No error) else version (b) ["dir"].execute; // std.exception.ErrnoException@std\stdio.d(563): Could not close file `somefile' (Bad file descriptor) else version (c) "bar".toFile("anotherfile"); else static assert(0, "Please specify -version=a, -version=b or -version=c"); }, () { "foo".toFile("somefile"); }]; foreach (func; funcs.parallel(1)) func(); } --
