[Zope] Zope 2.7.0 zopectl problems (bug?) and questions
Jim Roepcke
jimr at tyrell.com
Tue Feb 17 15:41:18 EST 2004
On Monday, February 16, 2004, at 07:54 AM, Jo Meder wrote:
> Can everybody have a look at the following snippet?
>
> This is from zdctl.py function do_start, the code directly preceeding
> the spawnvp() the results in the traceback:
>
> if self.options.daemon:
> flag = os.P_WAIT
> else:
> flag = os.P_NOWAIT
> os.spawnvp(flag, args[0], args)
>
> IMHO the settings for flag are exactly the wrong way around. If
> self.options.daemon contains what the name suggests, we should us
> os.P_NOWAIT if we are in daemon-mode and os.P_WAIT if where not.
>
> So the patch would be to exchange these to lines to read
>
> if self.options.daemon:
> flag = os.P_NOWAIT
> else:
> flag = os.P_WAIT
> os.spawnvp(flag, args[0], args)
I can confirm that this change makes the zopectl script work as
expected on Mac OS X 10.2.8.
Thank you Jo!!!
Can people with Linux 2.4 and 2.6 please test zopectl with the fix
above?
Jim
--
Jim Roepcke
Tyrell Software Corp <http://www.tyrell.com/>
More information about the Zope
mailing list