new syscall stub support for ia64 libc

Ulrich Drepper drepper@redhat.com
Tue Nov 18 02:17:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Mosberger wrote:

> The one I mentioned: signal handler gets called in this code right
> before the _IO_flockfile():
> 
> 	    _IO_FILE *_IO_acquire_lock_file			\
> 	        __attribute__((cleanup (_IO_acquire_lock_fct)))	\
> 	        = (_fp);					\
> 	    _IO_flockfile (_IO_acquire_lock_file);
> 
> and then the signal handler calls write(), which ends up getting
> cancelled.  What prevents this from happening?

Why should it be prevented?  If you call write in a signal handler you
either disable cancellation of live with it.

- -- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/uX8D2ijCOnn/RHQRAhSHAJ9sssJ94YNIqdAxmdbegxPykfZ4VgCgpl9p
xi4QRm0VQGAwAS2TDQq5Re0=
=TAQ0
-----END PGP SIGNATURE-----



More information about the Libc-hacker mailing list