[Zope] Zope 2.7.0 zopectl problems (bug?) and questions

Jim Roepcke jimr at tyrell.com
Tue Feb 17 17:16:28 EST 2004


On Tuesday, February 17, 2004, at 12:41  PM, Jim Roepcke wrote:

> 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?

I just tested this on a new python 2.3.3 and zope 2.7.0 build on debian 
with the 2.4 kernel and it worked fine.  (it worked fine with or 
without the swapping of those two lines)

Jim

--
Jim Roepcke
Tyrell Software Corp  <http://www.tyrell.com/>




More information about the Zope mailing list