diff options
author | erdgeist <> | 2007-01-10 16:42:39 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-10 16:42:39 +0000 |
commit | cb12e922d5ee1438e47c9510db6748f91f70976e (patch) | |
tree | 824b300cbc763098a96e70a815fd2d9e6938ce12 | |
parent | 74a7fbd6fe88a9bed988d5987b6b24dd12edeb04 (diff) |
Ignore SIGPIPE. This is safe, since it only raises, when the remote site died before we could send our paket back and is catched by write() returning -1
-rw-r--r-- | opentracker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c index d22a3b2..ac09089 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -382,6 +382,7 @@ allparsed: | |||
382 | if (!io_fd(s)) | 382 | if (!io_fd(s)) |
383 | panic("io_fd"); | 383 | panic("io_fd"); |
384 | 384 | ||
385 | signal( SIGPIPE, SIG_IGN ); | ||
385 | signal( SIGINT, graceful ); | 386 | signal( SIGINT, graceful ); |
386 | if( init_logic( serverdir ) == -1 ) | 387 | if( init_logic( serverdir ) == -1 ) |
387 | panic("Logic not started"); | 388 | panic("Logic not started"); |