ID EN
OS

wait

Python 3.11

Wait for completion of a child process, and return a tuple containing its pid and exit status indication: a 16-bit number, whose low byte is the signal number that killed the process, and whose high byte is the exit status (if the signal number is zero); the high bit of the low byte is set if a core file was produced.

Syntax

PYTHON
os.wait()

See Also

ChildProcessError waitstatus_to_exitcode() Availability waitpid()