MCPcopy
hub / github.com/cherrypy/cherrypy / start

Method start

cherrypy/process/plugins.py:435–443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433 self.finalized = False
434
435 def start(self):
436 pid = os.getpid()
437 if self.finalized:
438 self.bus.log('PID %r already written to %r.' % (pid, self.pidfile))
439 else:
440 with open(self.pidfile, 'wb') as f:
441 f.write(ntob('%s\n' % pid, 'utf8'))
442 self.bus.log('PID %r written to %r.' % (pid, self.pidfile))
443 self.finalized = True
444 start.priority = 70
445
446 def exit(self):

Callers 2

startMethod · 0.45
startMethod · 0.45

Calls 3

ntobFunction · 0.90
logMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected