suspicious code in dtable::dup2

Christopher Faylor cgf@redhat.com
Mon Jun 24 17:07:00 GMT 2002


On Mon, Jun 24, 2002 at 03:12:08PM -0400, Joe Buehler wrote:
>Looking at dtable::dup2 in dtable.cc, it appears that it is possible
>to lock the fd list resource then exit the function without
>unlocking it.  Which presumably could cause a hang sometime later.

You're right.  I checked in a fix for this.

Thanks.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list