--- dmd/src/dmd/link.d
+++ dmd/src/dmd/link.d
@@ -782,7 +782,7 @@ public int runLINK()
close(fds[0]);
execvp(argv[0], argv.tdata());
perror(argv[0]); // failed to execute
- return -1;
+ _exit(-1);
}
else if (childpid == -1)
{