diff options
| author | 2019-09-28 12:32:32 +0200 | |
|---|---|---|
| committer | 2019-09-28 12:32:32 +0200 | |
| commit | c2db27c92341e1ba257102f6fb29a61f66c2fb6d (patch) | |
| tree | 99d59c784cf80566f605c6fa5e2fabc02c57f0ed /tools/icat.c | |
| parent | b097ea39f391f5c2c83d8f4687843a3634f7cd54 (diff) | |
| download | libusbmuxd-c2db27c92341e1ba257102f6fb29a61f66c2fb6d.tar.gz libusbmuxd-c2db27c92341e1ba257102f6fb29a61f66c2fb6d.tar.bz2 | |
tools: Ignore SIGPIPE
Diffstat (limited to 'tools/icat.c')
| -rw-r--r-- | tools/icat.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/tools/icat.c b/tools/icat.c index 42f7420..b306a47 100644 --- a/tools/icat.c +++ b/tools/icat.c @@ -36,6 +36,7 @@  #include <sys/socket.h>  #include <sys/un.h>  #include <sys/ioctl.h> +#include <signal.h>  #endif  #include "usbmuxd.h" @@ -86,6 +87,9 @@ int main(int argc, char **argv)          return -EINVAL;      } +#ifndef WIN32 +    signal(SIGPIPE, SIG_IGN); +#endif      usbmuxd_device_info_t *dev_list = NULL;      int count;      if ((count = usbmuxd_get_device_list(&dev_list)) < 0) { | 
