OSDN Git Service

When running with the debug mode, Thread.abort_on_exception is true.
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sun, 17 Feb 2008 11:19:00 +0000 (11:19 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sun, 17 Feb 2008 11:19:00 +0000 (11:19 +0000)
shogi-server

index 23dde67..597f675 100755 (executable)
@@ -2310,7 +2310,7 @@ if ($0 == __FILE__)
   STDOUT.sync = true
   STDERR.sync = true
   TCPSocket.do_not_reverse_lookup = true
-  Thread.abort_on_exception = false
+  Thread.abort_on_exception = $DEBUG ? true : false
 
   LEAGUE = ShogiServer::League::new
   main