I wasn't waiting for this subprocess to exit. It would sometimes hang
around as a zombie.
Signed-off-by: NeilBrown <neil@brown.name>
### Trivial
-- [ ] self.thread_p in notmuch isn't explicitly waited for, so it
+- [X] self.thread_p in notmuch isn't explicitly waited for, so it
can remain a zombie
- [ ] mouse click in "56 quoted lines" put cursor on next line, not
in the quoted region
self.thread_text += b
b = os.read(self.thread_p.stdout.fileno(), 4096)
except IOError:
+ # More to be read
return 1
+ self.thread_p.wait()
+ self.thread_p = None
# Must have read EOF to get here.
th = json.loads(self.thread_text.decode("utf-8","ignore"))
self.thread_text = None