summaryrefslogtreecommitdiff
path: root/src/nohup.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-18 07:18:54 +0000
committerJim Meyering <jim@meyering.net>2003-07-18 07:18:54 +0000
commite992d666e1c0d9911f279350270f9fae76bc7814 (patch)
tree8b5fade4216e52d290d661032681e6b8df502c0a /src/nohup.c
parent309d778d051004300f112824c169a72ab83369af (diff)
downloadcoreutils-e992d666e1c0d9911f279350270f9fae76bc7814.tar.xz
(NOHUP_FOUND_BUT_CANNOT_INVOKE, NOHUP_FAILURE):
Use an anonymous `enum', rather than #define.
Diffstat (limited to 'src/nohup.c')
-rw-r--r--src/nohup.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nohup.c b/src/nohup.c
index a91f9756b..eee2ca099 100644
--- a/src/nohup.c
+++ b/src/nohup.c
@@ -34,12 +34,15 @@
#define AUTHORS "Jim Meyering"
-/* This exit status indicates that `nohup' itself failed. */
-#define NOHUP_FAILURE 127
+/* Exit statuses. */
+enum
+ {
+ /* `nohup' found the specified command but failed to invoke it. */
+ NOHUP_FOUND_BUT_CANNOT_INVOKE = 126,
-/* This exit status indicates that `nohup' found the specified command
- but failed to invoke it. */
-#define NOHUP_FOUND_BUT_CANNOT_INVOKE 126
+ /* `nohup' itself failed, or did not find the specified command. */
+ NOHUP_FAILURE = 127
+ };
char *program_name;