From 57a8d943397eb6f5e271471a74e4e94a1dfa03a0 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 15 May 2008 22:21:25 +0100 Subject: [PATCH] Also handle the chosen shell failing to spawn. There's not much else we can do than die --- terminator | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminator b/terminator index 0840cd77..c178f770 100755 --- a/terminator +++ b/terminator @@ -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