Introduction
Introduction Statistics Contact Development Disclaimer Help
Don't use EXIT_{SUCCESS,FAILURE} - sinit - suckless init
git clone git://git.suckless.org/sinit
Log
Files
Refs
README
LICENSE
---
commit 20bae3a21d90690fa32355a91d7833ba743a96cd
parent c714a445f7b016b17f371e3eb6d90eb5d8076622
Author: sin <[email protected]>
Date: Thu, 4 Dec 2014 14:56:01 +0000
Don't use EXIT_{SUCCESS,FAILURE}
Diffstat:
M sinit.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sinit.c b/sinit.c
@@ -34,7 +34,7 @@ main(void)
size_t i;
if (getpid() != 1)
- return EXIT_FAILURE;
+ return 1;
chdir("/");
sigfillset(&set);
sigprocmask(SIG_BLOCK, &set, NULL);
@@ -49,7 +49,7 @@ main(void)
}
}
/* not reachable */
- return EXIT_SUCCESS;
+ return 0;
}
static void
@@ -84,6 +84,6 @@ spawn(char *const argv[])
setsid();
execvp(argv[0], argv);
perror("execvp");
- _exit(EXIT_FAILURE);
+ _exit(1);
}
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.