From 9da6788751db07ad87d52e6ddaf729aa49567d65 Mon Sep 17 00:00:00 2001 From: jwise Date: Wed, 24 Aug 2005 01:44:07 +0000 Subject: Add a small patch for daemon mode -- if running on NetBSD, call daemon() to properly dissociate ourselves from the controlling terminal (and more). This is still not enough to make daemon mode stable for me on 3.0_BETA, but it's certainly a step in the right direction. --- mail/dspam/distinfo | 3 ++- mail/dspam/patches/patch-ab | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 mail/dspam/patches/patch-ab (limited to 'mail/dspam') diff --git a/mail/dspam/distinfo b/mail/dspam/distinfo index 8ee9a3c66ad..3ca979fee8b 100644 --- a/mail/dspam/distinfo +++ b/mail/dspam/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.21 2005/08/08 11:10:15 xtraeme Exp $ +$NetBSD: distinfo,v 1.22 2005/08/24 01:44:07 jwise Exp $ SHA1 (dspam-3.4.9.tar.gz) = e697774e0f2eb4a9a363cf80257072219641f8e3 RMD160 (dspam-3.4.9.tar.gz) = f4088017e3e5984101bba7d5e5e313d35076d469 Size (dspam-3.4.9.tar.gz) = 701069 bytes SHA1 (patch-aa) = 15c6fc58dd0d91799f0c97554f4188cbe68dbd96 +SHA1 (patch-ab) = 96c77d23174f51cd8df46a91ff9d8c38cd98d8a7 diff --git a/mail/dspam/patches/patch-ab b/mail/dspam/patches/patch-ab new file mode 100644 index 00000000000..aabd91ff4a5 --- /dev/null +++ b/mail/dspam/patches/patch-ab @@ -0,0 +1,13 @@ +--- 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; -- cgit v1.2.3