pthread_rwlock_rdlock() returns EDEADLK when trying to call it > once

2008-12-01 Thread kalle ko
Possible bug in winsup/cygwin/thread.cc: ... int pthread_rwlock::rdlock () { int result = 0; struct RWLOCK_READER *reader; pthread_t self = pthread::self (); mtx.lock (); if (lookup_reader (self)) { result = EDEADLK; goto DONE; } ... It doesn't seem like it's possib

write big buffer to connected socket, then close socket hangs cygwin

2008-07-15 Thread kalle ko
Latest updated cygwin (just updated to make sure), Windows Vista SP1. This will hang cygwin 1.5.25-cr-0x5f1: 1. Create a connected socket 2. Send a big enough buffer (> 0x4238 bytes) 3. Close the socket It will hang in the close() function. Only way is to kill it with taskmanager or close the cyg