def attach(self, root_process):
self.process = root_process
if self.high_priority:
self.logger.info('Setting server process to high priority')
self.process.nice(psutil.HIGH_PRIORITY_CLASS)
root_process.nice(psutil.HIGH_PRIORITY_CLASS)
评论列表
文章目录