[Olsr-cvs] olsrd-current/lib/bmf/src Bmf.c,1.6,1.7
Bernd Petrovitsch
(spam-protected)
Tue Jul 31 14:02:20 CEST 2007
Update of /cvsroot/olsrd/olsrd-current/lib/bmf/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11886/lib/bmf/src
Modified Files:
Bmf.c
Log Message:
* fixed SIGSEGV reported by Cédric Krier <(spam-protected)>
Index: Bmf.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/bmf/src/Bmf.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Bmf.c 30 Jun 2007 20:07:47 -0000 1.6
--- Bmf.c 31 Jul 2007 12:02:18 -0000 1.7
***************
*** 1452,1468 ****
}
! /* Signal BmfThread to exit */
! /* Strangely enough, all running threads receive the SIGALRM signal. But only the
! * BMF thread is affected by this signal, having specified a handler for this
! * signal in its thread entry function BmfRun(...). */
! if (pthread_kill(BmfThread, SIGALRM) != 0)
{
! BmfPError("pthread_kill() error");
! }
! /* Wait for BmfThread to acknowledge */
! if (pthread_join(BmfThread, NULL) != 0)
! {
! BmfPError("pthread_join() error");
}
--- 1452,1471 ----
}
! if (BmfThreadRunning)
{
! /* Signal BmfThread to exit */
! /* Strangely enough, all running threads receive the SIGALRM signal. But only the
! * BMF thread is affected by this signal, having specified a handler for this
! * signal in its thread entry function BmfRun(...). */
! if (pthread_kill(BmfThread, SIGALRM) != 0)
! {
! BmfPError("pthread_kill() error");
! }
! /* Wait for BmfThread to acknowledge */
! if (pthread_join(BmfThread, NULL) != 0)
! {
! BmfPError("pthread_join() error");
! }
}
More information about the Olsr-cvs
mailing list