Hi John, 2005/10/27, John Machin <[EMAIL PROTECTED]>: > Would it be possible for us to behold the code that you are using?
sure: <code> p = os.spawnv(os.P_NOWAIT, sOffice, cmdArray) exit_status = os.waitpid(p, os.WNOHANG)[1] if exit_status != 0: raise BootstrapException("Could not start %s." % (sOffice,), None) </code> That was the initial code, but as Win32 does not support os.WNOHANG this will not work out for the Microsoft platform. Furtheron it did not do the shifting, we have changed this to have some conditionals to test for windows and if that's the case, call os.waitpid(p, 0). On *ix, if the process does not terminate immediately after its start, we get 0 as the exit status, on Win32 with no flag at all, we get a number that resolves to 1 when shifted 8 bits to the right. I hope that my post gets clear now, we just want to check if the process still runs which we cannot really dertemine as it looks like on Win32. -- Best Regards Christian Junker _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32