--- src/dspam.c.orig 2005-04-20 10:07:19.000000000 -0400 +++ src/dspam.c 2005-04-28 10:49:13.000000000 -0400 @@ -3094,6 +3094,10 @@ DRIVER_CTX DTX; char *pidfile; +#ifdef __NetBSD__ + daemon(0, 0); +#endif + __daemon_run = 1; __num_threads = 0; __hup = 0;