Add pid_get_cwd support for SunOS. Patch from Lewis Thompson. Closes LP #381610.
This commit is contained in:
parent
224fddedbd
commit
2cd90552f9
|
@ -270,6 +270,9 @@ class Terminator:
|
||||||
elif platform.system() == 'Linux':
|
elif platform.system() == 'Linux':
|
||||||
dbg ('Using Linux self.pid_get_cwd')
|
dbg ('Using Linux self.pid_get_cwd')
|
||||||
self.pid_get_cwd = lambda pid: os.path.realpath ('/proc/%s/cwd' % pid)
|
self.pid_get_cwd = lambda pid: os.path.realpath ('/proc/%s/cwd' % pid)
|
||||||
|
elif platform.system() == 'SunOS':
|
||||||
|
dbg ('Using SunOS self.pid_get_cwd')
|
||||||
|
self.pid_get_cwd = lambda pid: os.path.realpath ('/proc/%s/path/cwd' % pid)
|
||||||
else:
|
else:
|
||||||
dbg ('Unable to set a self.pid_get_cwd, unknown system: %s' % platform.system)
|
dbg ('Unable to set a self.pid_get_cwd, unknown system: %s' % platform.system)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue