Re: [PATCH] libc: make I/O locking cancel-safe with futexes

2012-09-28 Thread Rich Felker
On Wed, Sep 12, 2012 at 04:55:29PM +0200, Carmelo AMOROSO wrote: > From: Filippo ARCIDIACONO > > Current implementation of I/O locking macros using futexes are not > cancel safe, as if a thread is cancelled while doing IO operations, > it does not release the lock on the IO stream. So following >

RE: [PATCH] libc: make I/O locking cancel-safe with futexes

2012-09-27 Thread Filippo ARCIDIACONO
5 PM > To: uclibc@uclibc.org > Cc: Filippo ARCIDIACONO; Carmelo Amoroso > Subject: [PATCH] libc: make I/O locking cancel-safe with futexes > > From: Filippo ARCIDIACONO > > Current implementation of I/O locking macros using futexes are not > cancel safe, as if a thread is ca

[PATCH] libc: make I/O locking cancel-safe with futexes

2012-09-12 Thread Carmelo AMOROSO
From: Filippo ARCIDIACONO Current implementation of I/O locking macros using futexes are not cancel safe, as if a thread is cancelled while doing IO operations, it does not release the lock on the IO stream. So following attempts to acquire the IO stream's lock would dead-lock. In order to make i