def write_pid(self):
        if self.pidfile:
            open(self.pidfile, 'wb').write(str(os.getpid()))
Write to the pid file
dataset/ETHPy150Open kiberpipa/Intranet/pipa/ltsp/src/ltsp_usage_monitor/daemon.py/Daemon.write_pid