The problem I see here, that such behaviour is not standart
for unix systems. I think that if program does not encounter
any problems, return code should be 0. In trouble it should
be non zero.
What do you think about this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
If you see function:
int daemonize() {
int pid = fork();
if( pid < 0 ) {
// Error
DEB(__rep_error( "daemonize" , 0 ));
return 0;
} else if( pid ) {
// Parent
return 0;
} else {
// Child - have to log it.
writelog( "Child process started." );
return 1;
}
}
return code 1 is not fatal return code. Don't worry about
config file.
Logged In: NO
Yes. I saw that code ;)
The problem I see here, that such behaviour is not standart
for unix systems. I think that if program does not encounter
any problems, return code should be 0. In trouble it should
be non zero.
What do you think about this?