Author: tack
Date: Wed Feb 13 09:25:23 2008
New Revision: 3056

Log:
Handle case when child dies before write buffer is emptied.


Modified:
   trunk/base/src/notifier/popen.py

Modified: trunk/base/src/notifier/popen.py
==============================================================================
--- trunk/base/src/notifier/popen.py    (original)
+++ trunk/base/src/notifier/popen.py    Wed Feb 13 09:25:23 2008
@@ -220,6 +220,12 @@
 
 
     def _handle_write(self):
+        if not self.child:
+            # The child process might have died before we had a chance to
+            # flush the write buffer.
+            del self._write_buffer[:]
+            return False
+
         try:
             while self._write_buffer:
                 data = self._write_buffer[0]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to