From 2f5316f8ae27736057eef34a72e4e087c0a24470 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 7 Apr 2010 17:41:27 +0200 Subject: Ignore SIGPIPE, otherwise usbmuxd might shut down on connection abort --- daemon/main.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.1-32-gdbae