MCPcopy Index your code
hub / github.com/pyload/pyload / restart

Method restart

pyLoadCore.py:586–597  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

584 return (self.lastClientConnected + 30) > time()
585
586 def restart(self):
587 self.shutdown()
588 chdir(owd)
589 # close some open fds
590 for i in range(3,50):
591 try:
592 close(i)
593 except :
594 pass
595
596 execl(executable, executable, *sys.argv)
597 _exit(0)
598
599 def shutdown(self):
600 self.log.info(_("shutting down..."))

Callers 1

startMethod · 0.95

Calls 1

shutdownMethod · 0.95

Tested by

no test coverage detected