patch for a more robust ptlib

see my notes here :
http://wiki.ekiga.org/index.php/User:H4ck3rm1k3#crash


ekiga/ptlib$ svn diff
Index: src/ptlib/unix/channel.cxx
===================================================================
--- src/ptlib/unix/channel.cxx  (Revision 22314)
+++ src/ptlib/unix/channel.cxx  (Arbeitskopie)
@@ -104,9 +104,21 @@
         break;

       case PXReadBlock :
-        PAssert(px_readThread == NULL || px_lastBlockType != PXReadBlock,
-                psprintf("Attempt to do simultaneous reads from
multiple threads:"
-                         " os_handle=%i, thread ID=%X", os_handle,
px_readThread->GetThreadId()));
+
+       if (px_readThread)
+         {
+           PAssert(px_readThread == NULL || px_lastBlockType != PXReadBlock,
+                   psprintf("Attempt to do simultaneous reads from multiple 
threads:"
+                            " os_handle=%i, thread ID=%X", os_handle,
px_readThread->GetThreadId()));
+         }
+       else
+         {
+           PAssert(px_readThread == NULL || px_lastBlockType != PXReadBlock,
+                   psprintf("Attempt to do simultaneous reads from multiple 
threads:"
+                            " os_handle=%i, thread ID=NULL", os_handle));
+
+         }
+       
         // Fall into default case

       default :
_______________________________________________
Ekiga-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/ekiga-devel-list

Reply via email to