Fix race conditions in {tcp,ipc}_connecter

Once the object has been terminated, it is unsafe for this object
to refer to its parent.

The bug was responsible for occasional
test_shutdown_stress failures.
This commit is contained in:
Martin Hurton
2012-06-12 01:39:16 +02:00
parent e9bfd76f87
commit 3ec8e576d9
6 changed files with 46 additions and 18 deletions

View File

@@ -53,6 +53,7 @@ namespace zmq
// Handlers for incoming commands.
void process_plug ();
void process_term (int linger_);
// Handlers for I/O events.
void in_event ();