Feature Requests item #2955089, was opened at 2010-02-19 18:59
Message generated for change (Comment added) made by sbajic
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1126468&aid=2955089&group_id=250683
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Julien Valroff (valroff)
>Assigned to: Stevan Bajic (sbajic)
Summary: Fork daemon into background
Initial Comment:
Hi,
Would you please add this patch which allows dspam daemon to fork into
background:
--- dspam-3.6.2~/src/dspam.c 2006-01-02 12:40:52.000000000 +0100
+++ dspam-3.6.2/src/dspam.c 2006-01-02 12:43:04.566063250 +0100
@@ -3830,6 +3830,11 @@
DRIVER_CTX DTX;
char *pidfile;
+ /* Fork dspam into the background */
+ if (fork()) {
+ exit(EXIT_SUCCESS);
+ }
+
__daemon_run = 1;
__num_threads = 0;
__hup = 0;
We have been using it in Debian for years, and Hugo already mentioned it last
year[0].
Cheers,
Julien
[0] http://www.mail-archive.com/[email protected]/msg00052.html
----------------------------------------------------------------------
>Comment By: Stevan Bajic (sbajic)
Date: 2010-02-19 19:11
Message:
Hallo Julien,
added slightly more then you requested but I think you don't mind:
http://dspam.git.sourceforge.net/git/gitweb.cgi?p=dspam/dspam;a=commit;h=33f2e6c4fd1ebf706734a2dedcb9c6644f815e89
Now that 3.9.0 is out, I am allowed to change default DSPAM behavior. So I
added fork() to be the default and using "--nofork" will switch to the old
non-forking behavior.
--
Kind Regards from Switzerland,
Stevan Bajić
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1126468&aid=2955089&group_id=250683
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel