aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf.py
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2020-01-24 23:39:50 +0000
committerMatthias Andree <matthias.andree@gmx.de>2020-01-24 23:39:50 +0000
commit36bd36b181398f9be0b3ca882c3273d8fbc2e8dd (patch)
tree192e2abaf2480f6910485acef0f4a253ce5a5390 /fetchmailconf.py
parentd70fd80ad10e64acf2c92a9191f22b78b8e0264c (diff)
downloadfetchmail-36bd36b181398f9be0b3ca882c3273d8fbc2e8dd.tar.gz
fetchmail-36bd36b181398f9be0b3ca882c3273d8fbc2e8dd.tar.bz2
fetchmail-36bd36b181398f9be0b3ca882c3273d8fbc2e8dd.zip
fetchmailconf: Check fetchmail's exit status from RunWindow()
Diffstat (limited to 'fetchmailconf.py')
-rwxr-xr-xfetchmailconf.py6
1 files changed, 6 insertions, 0 deletions
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):