diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-08-28 20:39:26 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-08-28 20:39:26 -0400 |
commit | 1d297a2821f8c5c5bc13b0bad88c966603ef46dc (patch) | |
tree | 6a6a8a325b96a4773ce9da0cba3f800227f96b95 /src/string/wcscasecmp.c | |
parent | b152d575fdde1b4173afb4cade55f35b6b2e9128 (diff) | |
download | musl-1d297a2821f8c5c5bc13b0bad88c966603ef46dc.tar.gz musl-1d297a2821f8c5c5bc13b0bad88c966603ef46dc.tar.bz2 musl-1d297a2821f8c5c5bc13b0bad88c966603ef46dc.tar.xz musl-1d297a2821f8c5c5bc13b0bad88c966603ef46dc.zip |
fix return value of system on failure to spawn child process
the value 0x7f00 (as if by _exit(127)) is specified only for the case
where the child is created but then fails to exec the shell, since
traditional fork+exec implementations do not admit reporting an error
via errno in this case without additional machinery. it's unclear
whether an implementation not subject to this failure mode needs to
emulate it; one could read the standard as requiring that. if so,
additional code will need to be added to map posix_spawn errors into
the form system is expected to return. but for now, returning -1 to
indicate an error is significantly better behavior than always
reporting failures as if the shell failed to exec after fork.
Diffstat (limited to 'src/string/wcscasecmp.c')
0 files changed, 0 insertions, 0 deletions