docker-offlineimap/offlineimap
John Goerzen 79a596be7b Don't leave preauthtunnel zombies with autorefresh
From: Peter Colberg

Hello,

using offlineimap with the preauthtunnel option to start a remote
IMAP daemon via ssh, a zombie process is left behind during the
autorefresh sleep period if not holding the connection open.

Above behaviour is a result of using os.popen2 to spawn the tunnel
process, which makes it impossible waiting for the child process
to terminate when shutting down the tunnel.

The patch included below fixes the issue by employing the Popen
class from the subprocess module, which seems to be the preferred
way to spawn processes and connect to their pipes in any case (at
least since python version 2.4.4, which fixes a memory leak in the
subprocess module).

Regards,
Peter

fixes deb#410730
2007-03-14 02:54:19 +01:00
..
folder Handle rtime being Null when writing to Maildir 2006-12-02 21:54:26 +01:00
repository Add remote{host,user,pass}eval config options (need documentation yet) 2006-10-17 20:55:03 +01:00
ui --help shows available UIs now 2007-01-11 10:15:06 +01:00
__init__.py Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
accounts.py New restoreatime patch from Ben Kibbey 2006-09-06 02:33:07 +01:00
CustomConfig.py Update FSF address 2006-08-12 05:15:55 +01:00
imaplib.py Don't leave preauthtunnel zombies with autorefresh 2007-03-14 02:54:19 +01:00
imapserver.py Update FSF address 2006-08-12 05:15:55 +01:00
imaputil.py Update FSF address 2006-08-12 05:15:55 +01:00
init.py Add a try: block to catch exceptions that occur before the main loop and to call ui.mainException(). 2006-12-01 11:59:22 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py Update FSF address 2006-08-12 05:15:55 +01:00
threadutil.py Update FSF address 2006-08-12 05:15:55 +01:00
version.py --help shows available UIs now 2007-01-11 10:15:06 +01:00