예제 #1
0
파일: executor.py 프로젝트: pombreda/rmake3
 def _setproctitle(self):
     title = 'rmake-worker: '
     if self.task:
         title += '<task %s>' % self.task.task_uuid.short
     else:
         title += '<idle>'
     osutil.setproctitle(title)
예제 #2
0
 def _setProcessTitle(self, name):
     try:
         # The import is delayed until here because this file is
         # imported by chrooted machinery that may not be running the
         # same python.
         from rmake.lib import osutil
         osutil.setproctitle('rmake %s' % (name,))
     except:
         # Failing to set the process title is not a big deal.
         pass
예제 #3
0
 def _setProcessTitle(self, name):
     try:
         # The import is delayed until here because this file is
         # imported by chrooted machinery that may not be running the
         # same python.
         from rmake.lib import osutil
         osutil.setproctitle('rmake %s' % (name, ))
     except:
         # Failing to set the process title is not a big deal.
         pass
예제 #4
0
def setproctitle(title):
    try:
        osutil.setproctitle('mirrorball %s' % (title,))
    except:
        pass
예제 #5
0
def setproctitle(title):
    try:
        osutil.setproctitle('mirrorball %s' % (title, ))
    except:
        pass