<p>Yes, at least in python2, that is a problem. The thing is, that our main thread needs to be able to be interrupted by signals such as Ctrl-C.</p>

<p>This is function threadutils.py:exitnotifymonitorloop<br>
As described in the comment, we need a timeout in that .get() call or Ctrl-C will never be catched (and we could potentially freeze forever without timeout). <a href="http://bugs.python.org/issue1360">http://bugs.python.org/issue1360</a><br>
On the other hand, a timeout will cause Python to wake up repeatedly (every 50ms if I remember correctly). I think it won't wake up if no timeout was specified.</p>

<p>Apparently this was fixed in python 3.2 so, we might be able to improve this in a Python3 world.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OfflineIMAP/offlineimap/issues/81#issuecomment-85058927">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSEKMqNOnOK0K3zkcy7PAENuFg8i8Hks5n4C3zgaJpZM4BrrHt.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OfflineIMAP/offlineimap/issues/81#issuecomment-85058927"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>