Py2exe - Bad File Descriptor

T misceverything at
Sun Feb 28 19:35:23 CET 2010

I have a Python script, which is a Windows Service, that I created an
EXE of via py2exe.  As part of the program, it calls some external
binaries, one of which restarts the computer.  When I'm logged in,
this works fine.  However, if I log out, the service stops and logs
the following error in the Event Log:

<type 'exceptions.IOError'>:(9, 'Bad file descriptor')

Anyone have an idea what could be causing this?

More information about the Python-list mailing list