forked from pool/hyper-v
- catch errors from daemon()
OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=10
This commit is contained in:
@@ -331,7 +331,10 @@ int main(void)
|
||||
char *key_value;
|
||||
char *key_name;
|
||||
|
||||
daemon(1, 0);
|
||||
if (daemon(1, 0) < 0) {
|
||||
perror("daemon");
|
||||
return 1;
|
||||
}
|
||||
openlog("KVP", 0, LOG_USER);
|
||||
syslog(LOG_INFO, "KVP starting; pid is:%d", getpid());
|
||||
/*
|
||||
|
Reference in New Issue
Block a user