From decd3e5d72bb72dc93ea314583f5c25e18c8ff1d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 31 Mar 2004 12:04:07 +0000 Subject: * fhandler_tape.cc (mtinfo_drive::get_pos): Only set partition if GetTapePosition returned a non-zero partition number. (mtinfo_drive::create_partitions): Reinitialize to partition 0. Support TAPE_DRIVE_INITIATOR and TAPE_DRIVE_FIXED partitioning. (mtinfo_drive::set_partition): Initialize new partition. (mtinfo_drive::status): Readd accidentally dropped setting of mt_resid. * net.cc (wsock_event::prepare): Always print debug output in case of error. --- winsup/cygwin/net.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index b53dacdf7..0bdff32e3 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -54,8 +54,9 @@ bool wsock_event::prepare (int sock, long event_mask) { WSASetLastError (0); - if ((event = WSACreateEvent ()) != WSA_INVALID_EVENT - && WSAEventSelect (sock, event, event_mask) == SOCKET_ERROR) + if ((event = WSACreateEvent ()) == WSA_INVALID_EVENT) + debug_printf ("WSACreateEvent: %E"); + else if (WSAEventSelect (sock, event, event_mask) == SOCKET_ERROR) { debug_printf ("WSAEventSelect: %E"); WSACloseEvent (event); -- cgit v1.2.3