IO deadlock
Ulrich Drepper
drepper@cygnus.com
Wed Jul 22 11:44:00 GMT 1998
Thorsten Kukuk <kukuk@weber-eb.uni-paderborn.de> writes:
> I have found the problem: We have a lock deadlock.
> fflush() locks the stream, and _IO_SYNC, too. It will hang in _IO_SYNC
> in flockfile().
I've changed _IO_file_sync. I don't know why I've added locking
there. It's not necessary and not wanted.
> There are some more functions, which makes a double lock on the stream.
> Haven't found them all yet, but getpwuid_r will also hang.
Well, as I've said double locking shouldn't be a problem normally...
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-hacker
mailing list