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

Marcel Maré mjmare at webtothemax.com
Wed Feb 18 15:19:28 EST 2004


Indeed it now works flawlessly on OSX 10.3.

Thanks for the quick fix.

M.J. Maré
WebToTheMax



> 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/>
>
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )





More information about the Zope mailing list