diff options
author | Christopher Faylor <me@cgf.cx> | 2011-12-11 05:25:20 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-12-11 05:25:20 +0400 |
commit | fc25f200f473a79294ee9ab195e431b211aadf73 (patch) | |
tree | c4afa79be8112ff1d58394bb7f70c11eca56d6f3 /winsup/cygwin/select.cc | |
parent | 14bb21fe45326a3397c3b1983ea0a0477044580e (diff) |
* select.cc (select_stuff::wait): Very minor formatting fix.
(peek_windows): Report on HWND handle used in queries.
* select.h: Update copyright.
* sigproc.h (cygwait): Eliminate multi-argument variety since more general
implementation may cause odd problems in select. Also force to always be
inline.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 261f004b2..77a78c427 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -366,8 +366,8 @@ select_stuff::wait (fd_set *readfds, fd_set *writefds, fd_set *exceptfds, set_errno (s->saw_error ()); return -1; /* Somebody detected an error */ } - else if ((((wait_ret >= m && s->windows_handle) || s->h == w4[wait_ret])) && - s->verify (s, readfds, writefds, exceptfds)) + else if ((((wait_ret >= m && s->windows_handle) || s->h == w4[wait_ret])) + && s->verify (s, readfds, writefds, exceptfds)) gotone = true; select_printf ("gotone %d", gotone); @@ -1498,11 +1498,11 @@ peek_windows (select_record *me, bool) if (PeekMessageW (&m, (HWND) h, 0, 0, PM_NOREMOVE)) { me->read_ready = true; - select_printf ("window %d(%p) ready", me->fd, me->fh->get_handle ()); + select_printf ("window %d(%p) ready", me->fd, h); return 1; } - select_printf ("window %d(%p) not ready", me->fd, me->fh->get_handle ()); + select_printf ("window %d(%p) not ready", me->fd, h); return me->write_ready; } |