equal
deleted
inserted
replaced
462 'chdir': chdir, |
462 'chdir': chdir, |
463 'runcommand': runcommand, |
463 'runcommand': runcommand, |
464 'setenv': setenv, |
464 'setenv': setenv, |
465 'setumask': setumask}) |
465 'setumask': setumask}) |
466 |
466 |
|
467 if util.safehasattr(osutil, 'setprocname'): |
|
468 def setprocname(self): |
|
469 """Change process title""" |
|
470 name = self._readstr() |
|
471 _log('setprocname: %r\n' % name) |
|
472 osutil.setprocname(name) |
|
473 capabilities['setprocname'] = setprocname |
|
474 |
467 def _tempaddress(address): |
475 def _tempaddress(address): |
468 return '%s.%d.tmp' % (address, os.getpid()) |
476 return '%s.%d.tmp' % (address, os.getpid()) |
469 |
477 |
470 def _hashaddress(address, hashstr): |
478 def _hashaddress(address, hashstr): |
471 # if the basename of address contains '.', use only the left part. this |
479 # if the basename of address contains '.', use only the left part. this |