about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--xe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xe.c b/xe.c
index 728102c..5f93856 100644
--- a/xe.c
+++ b/xe.c
@@ -262,8 +262,9 @@ run()
 			}
 		}
 		execvp(args[0], args);
+		int status = (errno == ENOENT ? 127 : 126);
 		fprintf(stderr, "xe: %s: %s\n", args[0], strerror(errno));
-		exit(errno == ENOENT ? 127 : 126);
+		exit(status);
 	}
 	if (pid < 0)
 		exit(126);