Fix daemon return code
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
parent
32ef1343db
commit
21dab5b24c
@ -129,7 +129,10 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (!foreground) {
|
||||
daemon(0, 0);
|
||||
if (daemon(0, 0) < 0) {
|
||||
printf("Failed to daemonize!\n");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (p->init(&backend_ctx, config) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user