mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-08 13:26:19 +00:00
Follow Unix behavior and return 127 if the command is not found,
and 126 if it is not executable. llvm-svn: 78120
This commit is contained in:
parent
46f946526c
commit
a9ceec3d38
@ -202,7 +202,7 @@ Program::Execute(const Path& path,
|
||||
execv(path.c_str(), (char**)args);
|
||||
// If the execve() failed, we should exit and let the parent pick up
|
||||
// our non-zero exit status.
|
||||
exit(127);
|
||||
exit(errno == ENOENT ? 127 : 126);
|
||||
}
|
||||
|
||||
// Parent process: Break out of the switch to do our processing.
|
||||
|
Loading…
x
Reference in New Issue
Block a user