From 3a67d0bf42c69423fca36d001023d563b0326399 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 19 Nov 2010 17:09:30 -0500 Subject: [PATCH] Resolve an evport bug in the thread/forking test --- test/regress_thread.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/regress_thread.c b/test/regress_thread.c index 51c333dc9e..cbc1efef4e 100644 --- a/test/regress_thread.c +++ b/test/regress_thread.c @@ -214,10 +214,15 @@ thread_basic(void *arg) event_add(notification_event, NULL); if ((pid = fork()) == 0) { + event_del(notification_event); if (event_reinit(base) < 0) { TT_FAIL(("reinit")); exit(1); } + event_assign(notification_event, base, + base->th_notify_fd[0], EV_READ|EV_PERSIST, + notify_fd_cb, NULL); + event_add(notification_event, NULL); goto child; }