[Zope] Error when start 2.7

Chris McDonough chrism at plope.com
Fri Apr 30 15:48:16 EDT 2004


Here is a patch to 2.7.0 that fixes this issue, FWIW (it is fixed in
CVS).

--- Zope-2.7.0/lib/python/zdaemon/zdctl.py      2003-10-24
17:32:59.000000000 -0400
+++ Zope-2.70/lib/python/zdaemon/zdctl-patched.py       2004-04-28
04:20:09.318455006 -0400
@@ -208,9 +208,9 @@ class ZDCmd(cmd.Cmd):
             args += self._get_override("-z", "directory")
             args.extend(self.options.program)
             if self.options.daemon:
-                flag = os.P_WAIT
-            else:
                 flag = os.P_NOWAIT
+            else:
+                flag = os.P_WAIT
             os.spawnvp(flag, args[0], args)
         elif not self.zd_pid:
             self.send_action("start")



On Fri, 2004-04-30 at 13:41, Dieter Maurer wrote:
> Please stay on the list (readded).
> 
> Damien Wyart wrote at 2004-4-30 18:08 +0200:
> > ... "zdaemon" startup problem on Linux 2.6 ...
> >Despite very careful searching, I haven't been able to locate these old
> >threads. Do you have a more precise reference ? I also need more
> >technical details about this issue.
> 
> Search for "waitpid", maybe together with Linux 2.6.
> 
> The patch author was convinced that "zdaemon" interchanged
> a flag (I think to "waitpid") between daemon and non-daemon
> mode.




More information about the Zope mailing list