diff options
author | June McEnroe <june@causal.agency> | 2020-08-15 23:11:09 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-15 23:11:09 -0400 |
commit | 1c4dd05f407633b9d8ca156a7ee4984e1b131cf6 (patch) | |
tree | 8a15e665d2d9686dc6185f8c489d8fb744173ddd /daemon.h | |
parent | Remove EX_CONFIG from default stopexits (diff) | |
download | catsit-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.h | 1 |
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; |