This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: IO deadlock
- To: Thorsten Kukuk <kukuk@weber-eb.uni-paderborn.de>
- Subject: Re: IO deadlock
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 22 Jul 1998 11:43:10 -0700
- Cc: libc-hacker@cygnus.com
- References: <199807220628.IAA00733@vt.uni-paderborn.de>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------