hyperv-daemons/hypervfcopyd-0-dont_call_daemon.patch
Tomas Hozza 29897df2af Package new Hyper-V fcopy daemon as hypervfcopyd sub-package
Signed-off-by: Tomas Hozza <thozza@redhat.com>
2014-06-11 10:29:09 +02:00

16 lines
508 B
Diff

diff -up ./hv_fcopy_daemon.c.daemon_fcopy ./hv_fcopy_daemon.c
--- ./hv_fcopy_daemon.c.daemon_fcopy 2014-02-19 09:55:20.689982023 +0100
+++ ./hv_fcopy_daemon.c 2014-02-19 09:55:36.700982923 +0100
@@ -131,11 +131,6 @@ int main(void)
char *buffer[4096 * 2];
struct hv_fcopy_hdr *in_msg;
- if (daemon(1, 0)) {
- syslog(LOG_ERR, "daemon() failed; error: %s", strerror(errno));
- exit(EXIT_FAILURE);
- }
-
openlog("HV_FCOPY", 0, LOG_USER);
syslog(LOG_INFO, "HV_FCOPY starting; pid is:%d", getpid());