diff --git a/NT/elogd.vcxproj b/NT/elogd.vcxproj index 3781422b..b0dff1a7 100644 --- a/NT/elogd.vcxproj +++ b/NT/elogd.vcxproj @@ -144,7 +144,7 @@ true - HAVE_STRLCPY;%(PreprocessorDefinitions) + %(PreprocessorDefinitions) TurnOffAllWarnings diff --git a/src/elogd.c b/src/elogd.c index af41029e..9205ac6c 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -28530,12 +28530,16 @@ void hup_handler(int sig) _hup = TRUE; } +#ifndef OS_WINNT + void alarm_handler(int sig) { if (sig) alarm(3); } +#endif + /*------------------------------------------------------------------*/ #ifdef HAVE_SSL @@ -28790,8 +28794,10 @@ void server_loop(void) alarm_handle.sa_flags = 0; sigaction(SIGALRM, &alarm_handle, NULL); +#ifndef OS_WINNT alarm(3); // prevents blocking send() operations - +#endif + /* give up root privilege */ if (geteuid() == 0) { if (!getcfg("global", "Grp", str, sizeof(str)) || setegroup(str) < 0) {