Displaying 1 result from an estimated 1 matches for "chproc".
Did you mean:
shproc
2003 Sep 09
1
Can't load daemon at boot
...at
http://fresh.t-systems-sfr.com/linux/src/.warix/logserial-0.4.2.tar.gz.html):
####################
void shutdown(int sig) {
switch (sig) {
default:
fprintf(stderr, "Got signal %d. Exit\n", sig);
break;
}
exit(EXIT_SUCCESS);
}
int main(void) {
chproc = fork();
if (chproc == -1) {
perror("Unable to fork");
exit(EXIT_FAILURE);
}
if (chproc != 0) {
fprintf(stderr, "Starting daemon...\n");
exit(EXIT_SUCCESS);
}
signal(SIGHUP, &shutdown);
signal(SIGINT, &shutdown);
signal(...