summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/sock_stuff.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-04-05 13:58:18 +0200
committerGravatar Nikias Bassen2012-04-05 13:58:18 +0200
commitcd07d72075739d6b59238d16fde6d02a1b97dbb9 (patch)
treec14160d287a0b01dd6dd4843a0a001849624df04 /libusbmuxd/sock_stuff.c
parentb63c3355bd194d1df83b2f5aa0affab411397dd4 (diff)
downloadusbmuxd-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.c5
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)
return sret;
}
+int shutdown_socket(int fd, int how)
+{
+ return shutdown(fd, how);
+}
+
int close_socket(int fd) {
#ifdef WIN32
return closesocket(fd);