Re: [PATCH] bug fix for bearerbox signal handling

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
Hi List,

FYI: just commited to cvs.


On Monday 13 October 2003 00:00, Alexander Malysh wrote:
> Hi List,
>
> attached patch corrects signal handling routine for bearerbox. We may not
>  call mutex_[lock|unlock] or any not asynchron signal safe functions within
> a signal handler. Here is a quote from 'man pthread_mutex_lock':
>
> ASYNC-SIGNAL SAFETY
>        The  mutex functions are not async-signal safe. What this means is
> 	that they should not be called from a signal handler. In particular,
> 	calling pthread_mutex_lock or pthread_mutex_unlock from a signal  handler
>        may deadlock the calling thread.
>
> Generally for signal handler apply: make as little as possible within
> signal handler function.
>
> Comments and votes are very welcome...
>

-- 
Best regards / Mit besten Grüßen aus Düsseldorf

Dipl.-Ing.
Alexander Malysh
___________________________________________

Centrium GmbH
Vogelsanger Weg 80
40470 Düsseldorf

Fon: +49 (0211) 74 84 51 80
Fax: +49 (0211) 277 49 109

email: a.malysh at centrium.de
web: www.centrium.de
msn: olek2002 at hotmail.com
icq: 98063111
___________________________________________

Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/nCQinX3e5W+uJ0ERAhokAKDun4IexbQ6Iw+qAqDYwjeN1UkUwgCfe9jh
E26TJfbCSR8o+hk0dXNldP0=
=zpdG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.