Check if child process has terminated. Set and return returncode attribute.
subprocess/Popen.poll
Popen.poll