diff options
| author | 2012-04-05 13:58:18 +0200 | |
|---|---|---|
| committer | 2012-04-05 13:58:18 +0200 | |
| commit | cd07d72075739d6b59238d16fde6d02a1b97dbb9 (patch) | |
| tree | c14160d287a0b01dd6dd4843a0a001849624df04 /libusbmuxd/sock_stuff.c | |
| parent | b63c3355bd194d1df83b2f5aa0affab411397dd4 (diff) | |
| download | usbmuxd-cd07d72075739d6b59238d16fde6d02a1b97dbb9.tar.gz usbmuxd-cd07d72075739d6b59238d16fde6d02a1b97dbb9.tar.bz2 | |
libusbmuxd: fix usbmuxd_unsubscribe() by using shutdown() instead of SIGINT
Diffstat (limited to 'libusbmuxd/sock_stuff.c')
| -rw-r--r-- | libusbmuxd/sock_stuff.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libusbmuxd/sock_stuff.c b/libusbmuxd/sock_stuff.c index edc738e..609c8ad 100644 --- a/libusbmuxd/sock_stuff.c +++ b/libusbmuxd/sock_stuff.c | |||
| @@ -321,6 +321,11 @@ int check_fd(int fd, fd_mode fdm, unsigned int timeout) | |||
| 321 | return sret; | 321 | return sret; |
| 322 | } | 322 | } |
| 323 | 323 | ||
| 324 | int shutdown_socket(int fd, int how) | ||
| 325 | { | ||
| 326 | return shutdown(fd, how); | ||
| 327 | } | ||
| 328 | |||
| 324 | int close_socket(int fd) { | 329 | int close_socket(int fd) { |
| 325 | #ifdef WIN32 | 330 | #ifdef WIN32 |
| 326 | return closesocket(fd); | 331 | return closesocket(fd); |
