From b7221617908d5cd73da17c11beb7ef96b12e7fa5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 30 Apr 2013 00:02:01 +0000 Subject: [PATCH] test_epoll: join thread before return from test We want to avoid closing the descriptor while the thread is running. --- test/test_epoll.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_epoll.rb b/test/test_epoll.rb index 5bf332f..af70fa2 100644 --- a/test/test_epoll.rb +++ b/test/test_epoll.rb @@ -201,6 +201,7 @@ class TestEpoll < Test::Unit::TestCase assert thr.alive? thr.kill assert tmp.empty? + thr.join end def test_rdhup -- 2.11.4.GIT