MCPcopy Create free account
hub / github.com/PlayOnLinux/POL-POM-4 / POLRestart

Method POLRestart

python/mainwindow.py:1099–1110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1097 os._exit(0)
1098
1099 def POLRestart(self):
1100 for pid in self.registeredPid:
1101 try:
1102 os.kill(-pid, signal.SIGKILL)
1103 except OSError:
1104 pass
1105 try:
1106 os.kill(pid, signal.SIGKILL)
1107 except OSError:
1108 pass
1109 app.POLServer.closeServer()
1110 os._exit(63) # Restart code
1111
1112 def ForceClose(self, signal, frame): # Catch SIGINT
1113 print("\nCtrl+C pressed. Killing all processes...")

Callers

nothing calls this directly

Calls 1

closeServerMethod · 0.80

Tested by

no test coverage detected