From d51339b88573ea881daf0b98d286e831dd59aa7f Mon Sep 17 00:00:00 2001 From: Steven Dee Date: Mon, 21 Oct 2013 14:55:19 -0400 Subject: [PATCH] Don't fork in daemon mode --- v/main.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/v/main.c b/v/main.c index 5018eeee2..eab2434ce 100644 --- a/v/main.c +++ b/v/main.c @@ -216,17 +216,7 @@ main(c3_i argc, u2_ve_sysopt(); if ( u2_yes == u2_Host.ops_u.dem ) { - c3_i pid; - - signal(SIGHUP, SIG_IGN); - if ( -1 == (pid = fork()) ) { - perror("fork"); - exit(1); - } - if ( pid ) { - printf("%s: daemon: process %d\n", argv[0], pid); - exit(0); - } + printf("Starting daemon\n"); } // Instantiate process globals.