Also handle the chosen shell failing to spawn. There's not much else we can do than die

This commit is contained in:
Chris Jones 2008-05-15 22:21:25 +01:00
parent ada09ea570
commit 57a8d94339
1 changed files with 4 additions and 0 deletions

View File

@ -209,6 +209,10 @@ class TerminatorTerm:
self._pid = self._vte.fork_command (command = shell, argv = args, envv = [], directory=self.cwd, loglastlog = login, logwtmp = update_records, logutmp = update_records)
if self._pid == -1:
print >>sys.stderr, _('Unable to start shell: ') + shell
exit (1)
def get_cwd (self):
""" Return the current working directory of the subprocess.
This function requires OS specific behaviours