[Sysfence-commit] sysfence sysfence.c,1.14,1.15
Status: Alpha
Brought to you by:
emes
|
From: mkoperto <mko...@us...> - 2004-05-22 16:45:18
|
Update of /cvsroot/sysfence/sysfence In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24339 Modified Files: sysfence.c Log Message: goes to backgroud... Index: sysfence.c =================================================================== RCS file: /cvsroot/sysfence/sysfence/sysfence.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- sysfence.c 20 May 2004 16:17:34 -0000 1.14 +++ sysfence.c 22 May 2004 16:45:08 -0000 1.15 @@ -125,7 +125,7 @@ /* open files for reading data and detach from console */ open_files (); - //if (daemon (0, 0) != 0) bail_out (EXIT_IO, "daemon()"); + if (daemon (0, 0) != 0) bail_out (EXIT_IO, "daemon()"); /* initialize semaphore */ semid = semaphore_init (SEMAPHORE_SET); @@ -172,10 +172,7 @@ /* one child process one ruleset */ rule_watch_loop (*(ruleshm + i)); } else /* parent */ - { - /* go background */ - daemon (1,0); - + { /* start handling signals */ signal_init (); |