fix missing errno from exec failure in posix_spawn
authorRich Felker <dalias@aerifal.cx>
Sat, 10 Aug 2013 00:04:05 +0000 (20:04 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 10 Aug 2013 00:04:05 +0000 (20:04 -0400)
commit65d7aa4dfde9697b93d765f2f736e5f4a38bdfd5
treeab9a58e103f22c61795eeb2d4e247e815c302ca1
parent9848e64819ce31787085a3d44df628bdf1091792
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.
src/process/posix_spawn.c