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

Method isAlreadyRunning

pyLoadCore.py:220–228  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

218 return 0
219
220 def isAlreadyRunning(self):
221 pid = self.checkPidFile()
222 if not pid or os.name == "nt": return False
223 try:
224 os.kill(pid, 0) # 0 - default signal (does nothing)
225 except:
226 return 0
227
228 return pid
229
230 def quitInstance(self):
231 if os.name == "nt":

Callers 3

__init__Method · 0.95
quitInstanceMethod · 0.95
startMethod · 0.95

Calls 2

checkPidFileMethod · 0.95
killMethod · 0.45

Tested by

no test coverage detected