mirror of
git://git.musl-libc.org/musl
synced 2025-03-11 06:07:29 +00:00
fix missing errno from exec failure in posix_spawn
failures prior to the exec attempt were reported correctly, but on exec failure, the return value contained junk.
This commit is contained in:
parent
9848e64819
commit
65d7aa4dfd
@ -105,6 +105,7 @@ static int child(void *args_vp)
|
||||
? &attr->__mask : &args->oldmask, 0);
|
||||
|
||||
args->exec(args->path, args->argv, args->envp);
|
||||
ret = -errno;
|
||||
|
||||
fail:
|
||||
/* Since sizeof errno < PIPE_BUF, the write is atomic. */
|
||||
|
Loading…
Reference in New Issue
Block a user