(process, suppress_errors=False)
Checks for process status (prints . if still running)
Checks for process status (prints . if still running)
Checks for process status ( prints . if still running )
def pollProcess(process, suppress_errors=False):
    """
    Checks for process status (prints . if still running)
    """

    while True:
        dataToStdout(".")
        time.sleep(1)

        returncode = process.poll()

        if returncode is not None:
            if not suppress_errors:
                if returncode == 0:
                    dataToStdout(" done\n")
                elif returncode < 0:
                    dataToStdout(" process terminated by signal %d\n" % returncode)
                elif returncode > 0:
                    dataToStdout(" quit unexpectedly with return code %d\n" % returncode)

            break
def pollProcess ( process , suppress_errors = False ) : while True : dataToStdout ( "." ) time . sleep ( 1 ) returncode = process . poll ( ) if returncode is not None : if not suppress_errors : if returncode == 0 : dataToStdout ( " done\n" ) elif returncode < 0 : dataToStdout ( " process terminated by signal %d\n" % returncode ) elif returncode > 0 : dataToStdout ( " quit unexpectedly with return code %d\n" % returncode ) break