ich habe mir (danke gerolds hilfe ) von einem prozess die pid geholt und möchte nun mit "os.waitpid()" auf beendigung dieses prozesses warten.
Code: Alles auswählen
pid_pid = 0
while (pid_pid == 0):
pid = fileOps.get_current_processes()
for proc in pid.values():
if proc["name"] == "xtop.exe":
# Gefunden
pid_name = proc["name"]
pid_pid = proc["pid"]
break
else:
continue
os.waitpid(pid_pid, 0)
laut der "Python Library Reference":OSError: [Errno 10] No child processes
wie bekomme ich nun aus der pid das process handle?On Windows: Wait for completion of a process given by process handle pid
mfg
BigBo