From 1c4dd05f407633b9d8ca156a7ee4984e1b131cf6 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 15 Aug 2020 23:11:09 -0400 Subject: 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 --- daemon.h | 1 - 1 file changed, 1 deletion(-) (limited to 'daemon.h') 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; -- cgit 1.4.1