Commit 640edf6a by jim

Fix windows build

git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@9685 ddd99763-3ecb-0310-9145-efcb8ce7c51f
parent e2bf34ed
Showing with 2 additions and 0 deletions
...@@ -457,8 +457,10 @@ int main(int argc, char *argv[]) ...@@ -457,8 +457,10 @@ int main(int argc, char *argv[])
signal(SIGINT, handle_sig); signal(SIGINT, handle_sig);
signal(SIGTERM, handle_sig); signal(SIGTERM, handle_sig);
#ifdef SIGPIPE /* not on Windows */
/* Ignore SIGPIPE so I/O errors to the network device won't kill the process */ /* Ignore SIGPIPE so I/O errors to the network device won't kill the process */
signal(SIGPIPE, SIG_IGN); signal(SIGPIPE, SIG_IGN);
#endif
if (detect) { if (detect) {
info("Autodetecting NerdJack address\n"); info("Autodetecting NerdJack address\n");
......
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