X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fprocess%2Fposix_spawn.c;h=5eb516b0f4e561e869601427650bad0ad0defe75;hb=5bb6b24952e3f95ede42b60ac64a33ac34b8e272;hp=c3e800b879553627daef047bae08bea4313d95ea;hpb=97c8bdd88ae2ee03eb9d333a79fa669b3878fc76;p=musl diff --git a/src/process/posix_spawn.c b/src/process/posix_spawn.c index c3e800b8..5eb516b0 100644 --- a/src/process/posix_spawn.c +++ b/src/process/posix_spawn.c @@ -35,9 +35,9 @@ int __posix_spawnx(pid_t *restrict res, const char *restrict path, __acquire_ptc(); pid = __vfork(); - __release_ptc(); if (pid) { + __release_ptc(); sigprocmask(SIG_SETMASK, &oldmask, 0); if (pid < 0) return -pid; *res = pid;