`osproc.peekExitCode` does what you need.

Reply via email to