Commit 16bf9f89 by nilm

ignore SIGPIPE

git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@9453 ddd99763-3ecb-0310-9145-efcb8ce7c51f
parent 267e0e32
Showing with 3 additions and 0 deletions
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment