mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +03:00
Merge remote-tracking branch 'origin/stable' into merge_stable
This commit is contained in:
commit
b0ef9ac009
11 changed files with 553 additions and 34 deletions
|
@ -4631,11 +4631,12 @@ else version (Posix)
|
|||
if (childpid == 0)
|
||||
{
|
||||
// Trusted because args and all entries are always zero-terminated
|
||||
(() @trusted =>
|
||||
core.sys.posix.unistd.execvp(args[0], &args[0]) ||
|
||||
perror(args[0]) // failed to execute
|
||||
)();
|
||||
return;
|
||||
(() @trusted {
|
||||
core.sys.posix.unistd.execvp(args[0], &args[0]);
|
||||
perror(args[0]);
|
||||
core.sys.posix.unistd._exit(1);
|
||||
})();
|
||||
assert(0, "Child failed to exec");
|
||||
}
|
||||
if (browser)
|
||||
// Trusted because it's allocated via strdup above
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue