[Sysfence-commit] sysfence mainloop.c,1.10,1.11
Status: Alpha
Brought to you by:
emes
|
From: Michal S. <em...@us...> - 2004-05-26 04:12:59
|
Update of /cvsroot/sysfence/sysfence In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31935 Modified Files: mainloop.c Log Message: + logging requires access to shared data. use semaphore Index: mainloop.c =================================================================== RCS file: /cvsroot/sysfence/sysfence/mainloop.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- mainloop.c 24 May 2004 22:25:16 -0000 1.10 +++ mainloop.c 26 May 2004 04:12:49 -0000 1.11 @@ -46,7 +46,9 @@ /* first - log if neccessary */ if (rule->log != NULL) { if (! (rule->log->once && rule->prevhit)) { + semaphore_wait (semid); log_rulehit (rule); + semaphore_post (semid); #ifdef DEBUG printf ("rule logged\n"); #endif |