[ZODB-Dev] ZEO on Windows

Michel Pelletier michel@digicool.com
Fri, 9 Mar 2001 18:10:09 -0800 (PST)


On Fri, 9 Mar 2001, Andy McKay wrote:

Zope-zeo@zope.org is now zope-zodb@zope.org.

> After the Python conference I am determined to run ZEO on my boxes, and now
> I remember why I didnt last time.
>
> All the examples are in Unix of course so Im trying to translate them into
> Windows. I found the following problems in the ZEO code so far:
>
> --
>
> Traceback (innermost last):
>   File "lib/python/ZEO/start.py", line 315, in ?
>     if __name__=='__main__': main(sys.argv)
>   File "lib/python/ZEO/start.py", line 297, in main
>     signal.signal(signal.SIGHUP, handler)
> AttributeError: SIGHUP

Hmmm..  I think the 'finally' is supposed to be an 'except'.  I don't see
what the point of a 'finally: pass' is.  Maybe Jim or someone else can
comment.

> Traceback (innermost last):
>   File "lib/python/ZEO/start.py", line 315, in ?
>     if __name__=='__main__': main(sys.argv)
>   File "lib/python/ZEO/start.py", line 310, in main
>     open(zeo_pid,'w').write("%s %s" % (os.getppid(), os.getpid()))
> AttributeError: getppid
>
> os.getppid is Unix only

Hmmm.. I'm thinking this should only happen on unix, like z2.py does it.
Just add something like 'if not sys.platform=='win32':' before that line.

Patches accepted. ;)

-Michel