don't call daemonize() under w32 (bb#1002)

git-svn: trunk@3857
remotes/push_mirror/metadata
Tomasz Kojm 17 years ago
parent d115bdea69
commit b500915b81
  1. 4
      ChangeLog
  2. 2
      freshclam/freshclam.c

@ -1,3 +1,7 @@
Wed May 21 15:51:32 CEST 2008 (tk)
----------------------------------
* freshclam/fresclam.c: don't call daemonize() under w32 (bb#1002)
Wed May 21 14:54:04 CEST 2008 (tk)
----------------------------------
* test/Makefile.am: compatibility with pmake (bb#1018)

@ -487,6 +487,7 @@ int main(int argc, char **argv)
bigsleep = 24 * 3600 / checks;
#if !defined(C_OS2) && !defined(C_WINDOWS)
if(!cfgopt(copt, "Foreground")->enabled) {
if(daemonize() == -1) {
logg("!daemonize() failed\n");
@ -497,6 +498,7 @@ int main(int argc, char **argv)
foreground = 0;
mprintf_disabled = 1;
}
#endif
if(opt_check(opt, "pid")) {
pidfile = opt_arg(opt, "pid");

Loading…
Cancel
Save