Skip to content

Commit

Permalink
Resolve an evport bug in the thread/forking test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Nov 19, 2010
1 parent 8faf223 commit 3a67d0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/regress_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3a67d0b

Please sign in to comment.