From 36bd36b181398f9be0b3ca882c3273d8fbc2e8dd Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 24 Jan 2020 23:39:50 +0000 Subject: fetchmailconf: Check fetchmail's exit status from RunWindow() --- fetchmailconf.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fetchmailconf.py') diff --git a/fetchmailconf.py b/fetchmailconf.py index d2dadf70..e856d9d0 100755 --- a/fetchmailconf.py +++ b/fetchmailconf.py @@ -1960,7 +1960,13 @@ class RunWindow(Frame): break self.textwidget.insert(END, ch) self.update() + ret = child_stdout.close() self.textwidget.insert(END, "Done.") + if ret is not None: + if ret < 0: + self.textwidget.insert(END, "Fetchmail killed with signal {}.".format(-ret)) + else: + self.textwidget.insert(END, "Fetchmail exited with return code {}.".format(ret >> 8)) self.textwidget.see(END) def leave(self): -- cgit v1.2.3