Skip to content

Commit

Permalink
Ignore SIGPIPE
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Sep 28, 2019
1 parent 0d053f4 commit 31fc365
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/ideviceactivation.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#ifndef WIN32
#include <signal.h>
#endif

#include <plist/plist.h>
#include <libimobiledevice/lockdown.h>
Expand Down Expand Up @@ -137,6 +140,9 @@ int main(int argc, char *argv[])
} op_t;
op_t op = OP_NONE;

#ifndef WIN32
signal(SIGPIPE, SIG_IGN);
#endif
/* parse cmdline args */
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {
Expand Down

0 comments on commit 31fc365

Please sign in to comment.