program hangs when external process crashes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Earl Eiland

    #1

    program hangs when external process crashes

    I'm executing WinRK.exe in a loop using the following code:

    for x in Files:
    Command_String = 'C:\Program Files\WinRK\Win RK.exe -create ' +
    os.path.join(In putDirectory, os.path.splitex t(x)[0]) + ' -set
    compression_met hod ppmz -setg include_paths none -add ' +
    os.path.join(In putDirectory, x) + ' -apply -quit'
    PROC = subprocess.Pope n(Command_Strin g)
    PROC.wait()

    Occasionally, WinRK crashes, and this program hangs at PROC.wait().
    What can I do about this?

    Earl Eiland

Working...