def _setproctitle(self): title = 'rmake-worker: ' if self.task: title += '<task %s>' % self.task.task_uuid.short else: title += '<idle>' osutil.setproctitle(title)
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
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
def setproctitle(title): try: osutil.setproctitle('mirrorball %s' % (title,)) except: pass
def setproctitle(title): try: osutil.setproctitle('mirrorball %s' % (title, )) except: pass