Fixed problem shutting down servers on cygwin.
This commit is contained in:
parent
12a3f7e19b
commit
3c3fec3908
|
@ -1 +1 @@
|
||||||
1426
|
1427
|
||||||
|
|
|
@ -262,7 +262,11 @@ ikrt_accept(ikptr s, ikpcb* pcb){
|
||||||
|
|
||||||
ikptr
|
ikptr
|
||||||
ikrt_shutdown(ikptr s, ikpcb* pcb){
|
ikrt_shutdown(ikptr s, ikpcb* pcb){
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
int err = close(unfix(s));
|
||||||
|
#else
|
||||||
int err = shutdown(unfix(s), SHUT_RDWR);
|
int err = shutdown(unfix(s), SHUT_RDWR);
|
||||||
|
#endif
|
||||||
if(err < 0){
|
if(err < 0){
|
||||||
return ikrt_io_error();
|
return ikrt_io_error();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue