diff options
author | Eric Wong <e@80x24.org> | 2014-03-22 08:43:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-03-22 08:54:43 +0000 |
commit | 95975647c0759f1c141c8627a2826fa8c706258d (patch) | |
tree | 135803eb6d16320c239adad70cc4650e29c7564b /test/server_helper.rb | |
parent | 4b8a59a8c01fefe7723caa17a44e9afdc74e0bbb (diff) | |
download | yahns-95975647c0759f1c141c8627a2826fa8c706258d.tar.gz |
GC will close redundantly and lead to EBADF when finalizing. This was probably harmless as the original IO objects remained marked; but do not count on it. Seeing EBADF in a MT process is a very bad sign (inadvertant information disclosure is only one race condition away). Fortunately, this bug was limited to our test suite :)
Diffstat (limited to 'test/server_helper.rb')
-rw-r--r-- | test/server_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/server_helper.rb b/test/server_helper.rb index a92a2da..856ff99 100644 --- a/test/server_helper.rb +++ b/test/server_helper.rb @@ -75,6 +75,7 @@ module ServerHelper def mkserver(cfg) fork do ENV["YAHNS_FD"] = @srv.fileno.to_s + @srv.autoclose = false yield if block_given? Yahns::Server.new(cfg).start.join end |