pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/dspam Add a small patch for daemon mode -- if run...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/28392515d158
branches:  trunk
changeset: 498487:28392515d158
user:      jwise <jwise%pkgsrc.org@localhost>
date:      Wed Aug 24 01:44:07 2005 +0000

description:
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.

diffstat:

 mail/dspam/distinfo         |   3 ++-
 mail/dspam/patches/patch-ab |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 3a3ba8af4a13 -r 28392515d158 mail/dspam/distinfo
--- a/mail/dspam/distinfo       Tue Aug 23 22:48:22 2005 +0000
+++ b/mail/dspam/distinfo       Wed Aug 24 01:44:07 2005 +0000
@@ -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 -r 3a3ba8af4a13 -r 28392515d158 mail/dspam/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dspam/patches/patch-ab       Wed Aug 24 01:44:07 2005 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index