convert execvp error handling to switch statement
authorRich Felker <dalias@aerifal.cx>
Wed, 21 Feb 2018 16:59:34 +0000 (11:59 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 21 Feb 2018 17:01:29 +0000 (12:01 -0500)
commit6d6102427d8d5450bd28788c792f97ef90cce274
treebb45d9493b530154a8f5a856cc1fcc22527c84ee
parent8e0b38060d7a9916fc2b5de0dd7c166ef60be9c1
convert execvp error handling to switch statement

this is more extensible if we need to consider additional errors, and
more efficient as long as the compiler does not know it can cache the
result of __errno_location (a surprisingly complex issue detailed in
commit a603a75a72bb469c6be4963ed1b55fabe675fe15).
src/process/execvp.c