Browse Source

FIX: don't redirect signals on win32

Juan José Gutiérrez de Quevedo Pérez 6 years ago
parent
commit
7728f8dae0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/hermes.cpp

+ 2 - 0
src/hermes.cpp

@@ -121,8 +121,10 @@ main
 
   signal(SIGTERM,exit_requested);
   signal(SIGINT,exit_requested);
+  #ifndef WIN32
   signal(SIGCHLD,SIG_IGN);
   signal(SIGPIPE,SIG_IGN);
+  #endif //WIN32
 
   //we have to create the server socket BEFORE chrooting, because if we don't,
   //SSL cannot initialize because it's missing libz