Browse Source

ignore SIGPIPE

git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@9453 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/ethstream-1.3
nilm 13 years ago
parent
commit
16bf9f89ef
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ethstream.c

+ 3
- 0
ethstream.c View File

@@ -423,6 +423,9 @@ int main(int argc, char *argv[])
signal(SIGINT, handle_sig);
signal(SIGTERM, handle_sig);

/* Ignore SIGPIPE so I/O errors to the network device won't kill the process */
signal(SIGPIPE, SIG_IGN);

if (detect) {
info("Autodetecting NerdJack address\n");
free(address);


Loading…
Cancel
Save