about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <ew@debkfreebsd.(none)>2012-07-02 04:21:40 +0000
committerEric Wong <normalperson@yhbt.net>2012-07-11 15:28:04 -0700
commitf020550fc802f299fdcdec695ac80d53ef3d24d9 (patch)
tree369b6b6e7eb32bcd94bc1d5b193062687061d656
parent488a148d8b172e152e3450062b172ba516ab84b3 (diff)
downloadkgio-f020550fc802f299fdcdec695ac80d53ef3d24d9.tar.gz
Ruby may not respond well to signals on all platforms, especially not
after fork()-ing in the face of a running pthread (timer thread on
1.9.2).  SIGKILL bypasses Ruby (and all userspace) signal handling on
Debian GNU/kFreeBSD.
-rw-r--r--test/lib_server_accept.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lib_server_accept.rb b/test/lib_server_accept.rb
index ccf89d8..ff0f733 100644
--- a/test/lib_server_accept.rb
+++ b/test/lib_server_accept.rb
@@ -47,7 +47,7 @@ module LibServerAccept
     elapsed = Time.now - t0
     assert_kind_of Kgio::Socket, b
     assert_equal @host, b.kgio_addr
-    Process.kill(:TERM, pid)
+    Process.kill(:KILL, pid)
     Process.waitpid(pid)
     assert elapsed >= 1, "elapsed: #{elapsed}"
   end
@@ -60,7 +60,7 @@ module LibServerAccept
     elapsed = Time.now - t0
     assert_kind_of Kgio::Socket, b
     assert_equal @host, b.kgio_addr
-    Process.kill(:TERM, pid)
+    Process.kill(:KILL, pid)
     Process.waitpid(pid)
     assert elapsed >= 1, "elapsed: #{elapsed}"
 
@@ -70,7 +70,7 @@ module LibServerAccept
     elapsed = Time.now - t0
     assert_kind_of Kgio::Socket, b
     assert_equal @host, b.kgio_addr
-    Process.kill(:TERM, pid)
+    Process.kill(:KILL, pid)
     Process.waitpid(pid)
     assert elapsed >= 6, "elapsed: #{elapsed}"
 
@@ -80,7 +80,7 @@ module LibServerAccept
     elapsed = Time.now - t0
     assert_kind_of Kgio::Socket, b
     assert_equal @host, b.kgio_addr
-    Process.kill(:TERM, pid)
+    Process.kill(:KILL, pid)
     Process.waitpid(pid)
     assert elapsed >= 1, "elapsed: #{elapsed}"
   end