* fhandler.h (fhandler_base::get_r_no_interrupt): Make non-virtual.

* net.cc (fdsock): Call set_r_no_interrupt.
This commit is contained in:
Corinna Vinschen 2002-07-31 13:18:51 +00:00
parent df28dc05d4
commit afcd48e61b
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-07-31 Conrad Scott <conrad.scott@dsl.pipex.com>
* fhandler.h (fhandler_base::get_r_no_interrupt): Make non-virtual.
* net.cc (fdsock): Call set_r_no_interrupt.
2002-07-30 Christopher Faylor <cgf@redhat.com>
* syscalls.cc (_read): Clarify debugging output.

View File

@ -209,7 +209,7 @@ class fhandler_base
int get_default_fmode (int flags);
virtual bool get_r_no_interrupt () { return FHISSETF (NOEINTR); }
bool get_r_no_interrupt () { return FHISSETF (NOEINTR); }
void set_r_no_interrupt (int b) { FHCONDSETF (b, NOEINTR); }
bool get_close_on_exec () { return FHISSETF (CLOEXEC); }

View File

@ -511,6 +511,7 @@ fdsock (int& fd, const char *name, SOCKET soc)
fhandler_socket *fh = (fhandler_socket *) cygheap->fdtab.build_fhandler (fd, FH_SOCKET, name);
fh->set_io_handle ((HANDLE) soc);
fh->set_flags (O_RDWR | O_BINARY);
fh->set_r_no_interrupt (winsock2_active);
debug_printf ("fd %d, name '%s', soc %p", fd, name, soc);
return fh;
}