[ruby-oci8-commit] [517] trunk/ruby-oci8: delete code which overwrites signal handlers registered by ruby.

nobody at rubyforge.org nobody at rubyforge.org
Sat Apr 28 06:54:14 UTC 2012


Revision: 517
Author:   kubo
Date:     2012-04-28 06:54:14 +0000 (Sat, 28 Apr 2012)
Log Message:
-----------
delete code which overwrites signal handlers registered by ruby.

Modified Paths:
--------------
    trunk/ruby-oci8/ChangeLog
    trunk/ruby-oci8/ext/oci8/oci8lib.c

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2012-04-24 12:46:35 UTC (rev 516)
+++ trunk/ruby-oci8/ChangeLog	2012-04-28 06:54:14 UTC (rev 517)
@@ -1,3 +1,8 @@
+2012-04-28  KUBO Takehiro  <kubo at jiubao.org>
+	* ext/oci8/oci8lib.c: delete code which overwrites signal handlers
+	    registered by ruby. This was committed by mistake.
+	    See: http://rubyforge.org/forum/forum.php?thread_id=50690&forum_id=1078
+
 2012-04-24  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/metadata.c: fix internal heap error in OCI.
 	    (github issue #12 reported by Yasuo Honda)

Modified: trunk/ruby-oci8/ext/oci8/oci8lib.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/oci8lib.c	2012-04-24 12:46:35 UTC (rev 516)
+++ trunk/ruby-oci8/ext/oci8/oci8lib.c	2012-04-28 06:54:14 UTC (rev 517)
@@ -1,15 +1,10 @@
 /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
 /*
- * Copyright (C) 2002-2011 KUBO Takehiro <kubo at jiubao.org>
+ * Copyright (C) 2002-2012 KUBO Takehiro <kubo at jiubao.org>
  */
 
 #include "oci8.h"
 
-#define DEBUG_CORE_FILE 1
-#ifdef DEBUG_CORE_FILE
-#include <signal.h>
-#endif
-
 ID oci8_id_at_last_error;
 ID oci8_id_new;
 ID oci8_id_get;
@@ -145,10 +140,6 @@
 #ifdef USE_WIN32_C
     Init_oci8_win32(cOCI8);
 #endif
-
-#ifdef DEBUG_CORE_FILE
-    signal(SIGSEGV, SIG_DFL);
-#endif
 }
 
 VALUE oci8_define_class(const char *name, oci8_base_vtable_t *vptr)



More information about the ruby-oci8-commit mailing list