def is_pid_running(pid):
 if (os.name == 'nt'):
  return _is_pid_running_on_windows(pid)
 else:
  return _is_pid_running_on_unix(pid)

def is_pid_running ( pid ) : if ( os . name == 'nt' ) : return _is_pid_running_on_windows ( pid ) else : return _is_pid_running_on_unix ( pid )
check if a process is running based on the pid .