summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-02 13:39:36 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-02 13:39:36 -0700
commit029bbf6fbf34c4bf05eddf095a39b5dac17c66ab (patch)
treee3f81ecfe7d87e3c9c7c76546efbc49031dd1b47
parente411eb1b4119ed9abf321712e896360e16a78322 (diff)
Use sysexits.h to improve cydo error status codes.
-rw-r--r--cydo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cydo.cpp b/cydo.cpp
index 0aad393..485d647 100644
--- a/cydo.cpp
+++ b/cydo.cpp
@@ -1,3 +1,4 @@
+#include <sysexits.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
@@ -12,5 +13,5 @@ int main(int argc, char *argv[]) {
}
execv(argv[0], argv);
- return 1;
+ return EX_UNAVAILABLE;
}