Guys,

do you see any inconvenient to use the follwing patch, so that dspam 
forks into the 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;



Hugo Monteiro.

-- 
ci.fct.unl.pt:~# cat .signature

Hugo Monteiro
Email    : hugo.monte...@fct.unl.pt
Telefone : +351 212948300 Ext.15307
Web      : http://hmonteiro.net

Centro de Informática
Faculdade de Ciências e Tecnologia da
                   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.ci.fct.unl.pt             ap...@fct.unl.pt

ci.fct.unl.pt:~# _


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to