Junio C Hamano [off-list ref] writes:
Ilari Liusvaara [off-list ref] writes:
quoted
Previously run-command was unable to report errors happening in exec
call. Change it to pass errno from failed exec to errno value at
return.
The errno value passing can be done by opening close-on-exec pipe and
piping the error code through in case of failure. In case of success,
close-on-exec closes the pipe on successful exec and parent process
gets end of file on read.
Thanks; I think overall this is a good idea, even though I have no clue
if WIN32 side wants a similar support.
By the way, at least it should be pretty straightforward to add a test or
two for [1/2] if not [2/2].