Mein lösungsansatz war:
Code: Alles auswählen
pid = os.fork()
if pid == 0:
blubb
else:
thread.start_new_thread(self._processGuard, (pid, signal.SIG_IGN))
Code: Alles auswählen
def _processGuard(self, pid, shutdownsignal):
time.sleep(self.process_time_limit)
os.kill(pid, shutdownsignal)
Habt ihr ne Ahnung warum das so ist?