summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-04-07 17:41:27 +0200
committerGravatar Hector Martin2010-04-08 15:19:18 +0200
commit2f5316f8ae27736057eef34a72e4e087c0a24470 (patch)
tree2fca3a59293ebae34002e3edec193f0b9e417fe3 /daemon
parente5621ca5ccd6ed1c7f03611538227350eb267dac (diff)
downloadusbmuxd-2f5316f8ae27736057eef34a72e4e087c0a24470.tar.gz
usbmuxd-2f5316f8ae27736057eef34a72e4e087c0a24470.tar.bz2
Ignore SIGPIPE, otherwise usbmuxd might shut down on connection abort
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index d8ae703..789a202 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -440,6 +440,7 @@ int main(int argc, char *argv[])
should_discover = 0;
set_signal_handlers();
+ signal(SIGPIPE, SIG_IGN);
res = lfd = open(lockfile, O_WRONLY|O_CREAT, 0644);
if(res == -1) {