0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-15 02:07:59 +08:00

Resolve LIBZMQ-452

Ref: https://zeromq.jira.com/browse/LIBZMQ-452
This commit is contained in:
Martin Hurton 2012-10-24 23:46:58 +02:00 committed by Pieter Hintjens
parent d95f8c5f55
commit d9d7d9be54

View File

@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../include/zmq.h"
#include "../include/zmq_utils.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
@ -86,7 +87,7 @@ static void *server (void *)
rc = zmq_term (context);
assert (rc == 0);
pthread_exit(NULL);
return NULL;
}
static void *worker (void *)
@ -129,7 +130,7 @@ static void *worker (void *)
rc = zmq_term (context);
assert (rc == 0);
pthread_exit(NULL);
return NULL;
}
int main (void)
@ -170,7 +171,7 @@ int main (void)
assert(rc >= 0);
}
sleep(1);
zmq_sleep (1);
seen = 0;
for (int i = 0; i < 10; ++i)
{
@ -229,7 +230,7 @@ int main (void)
assert (rc >= 0);
}
sleep(1);
zmq_sleep (1);
seen = 0;
for (int i = 0; i < 10; ++i)