diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2020-01-24 23:39:50 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2020-01-24 23:39:50 +0000 |
commit | 36bd36b181398f9be0b3ca882c3273d8fbc2e8dd (patch) | |
tree | 192e2abaf2480f6910485acef0f4a253ce5a5390 /fetchmailconf.py | |
parent | d70fd80ad10e64acf2c92a9191f22b78b8e0264c (diff) | |
download | fetchmail-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-x | fetchmailconf.py | 6 |
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): |