Index: winsup/cygwin/fhandler.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/fhandler.cc,v retrieving revision 1.382 diff -u -p -r1.382 fhandler.cc --- winsup/cygwin/fhandler.cc 3 May 2011 10:11:19 -0000 1.382 +++ winsup/cygwin/fhandler.cc 4 May 2011 02:54:22 -0000 @@ -1731,7 +1731,7 @@ fhandler_base_overlapped::wait_overlappe if (!get_overlapped ()) return inres ? overlapped_success : overlapped_error; - wait_return res; + wait_return res = overlapped_error; DWORD err = GetLastError (); if (nonblocking) {