Revision: 482 http://vde.svn.sourceforge.net/vde/?rev=482&view=rev Author: rd235 Date: 2011-03-27 21:04:28 +0000 (Sun, 27 Mar 2011)
Log Message: ----------- dpipe daemon and pid log Modified Paths: -------------- branches/rd235/vde-2/src/dpipe.c Modified: branches/rd235/vde-2/src/dpipe.c =================================================================== --- branches/rd235/vde-2/src/dpipe.c 2011-03-27 20:53:56 UTC (rev 481) +++ branches/rd235/vde-2/src/dpipe.c 2011-03-27 21:04:28 UTC (rev 482) @@ -199,15 +199,14 @@ if (err) exit(1); - if (setpgrp() == 0) - pgrp = getpgrp(); - else { + if (daemonize != 0) + daemon(0,0); + else if (setpgrp() != 0) { fprintf(stderr,"Err: cannot create pgrp\n"); exit(1); } - if (daemonize != 0) - daemon(0,0); + pgrp = getpgrp(); if (pidfile != NULL) { FILE *f=fopen(pidfile, "w"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ vde-users mailing list vde-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vde-users