summary refs log tree commit diff
path: root/daemon.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-15 23:11:09 -0400
committerJune McEnroe <june@causal.agency>2020-08-15 23:11:09 -0400
commit1c4dd05f407633b9d8ca156a7ee4984e1b131cf6 (patch)
tree8a15e665d2d9686dc6185f8c489d8fb744173ddd /daemon.h
parentRemove EX_CONFIG from default stopexits (diff)
downloadcatsit-1c4dd05f407633b9d8ca156a7ee4984e1b131cf6.tar.gz
catsit-1c4dd05f407633b9d8ca156a7ee4984e1b131cf6.zip
Add 126 to hardcoded stop exits
> If a command is not found, the exit status shall be 127. If the
> command name is found, but it is not an executable utility, the exit
> status shall be 126. Applications that invoke utilities without using
> the shell should use these exit status values to report similar errors.

[1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_02
Diffstat (limited to '')
-rw-r--r--daemon.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/daemon.h b/daemon.h
index 1ee3ea5..0dcf4de 100644
--- a/daemon.h
+++ b/daemon.h
@@ -154,7 +154,6 @@ static inline uint32_t setTest(const struct Set256 *set, byte x) {
 	return set->bits[x / 32] & (1 << (uint32_t)(x & 31));
 }
 
-enum { StopExit = 127 };
 extern struct Set256 stopExits;
 extern struct timespec restartInterval;
 extern struct timespec resetInterval;
mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe