MCPcopy
hub / github.com/pyload/pyload / writePidFile

Method writePidFile

pyLoadCore.py:196–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 _exit(1)
195
196 def writePidFile(self):
197 self.deletePidFile()
198 pid = os.getpid()
199 f = open(self.pidfile, "wb")
200 f.write(str(pid))
201 f.close()
202
203 def deletePidFile(self):
204 if self.checkPidFile():

Callers 1

startMethod · 0.95

Calls 3

deletePidFileMethod · 0.95
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected