Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing segfault problem on 64 bit platform

  • Loading branch information...
commit beedf477d6b7272443306d91ce3857f3a52d6c75 1 parent b800552
@ph7 ph7 authored
Showing with 10 additions and 3 deletions.
  1. +7 −0 ChangeLog
  2. +1 −1  Rakefile
  3. +2 −2 ext/system_timer/system_timer_native.c
View
7 ChangeLog
@@ -1,3 +1,10 @@
+=== 1.1.1 / 2009-03-10
+
+ * Fixing set_itimerval_with_minimum_1s_interval method signature
+ which was incorrect and resulted in a segfault on 64 bits
+ platform (int versus VALUE). Thanks to Mike Perham for
+ investigating the problem and sending the patch!
+
=== 1.1.0 / 2008-11-05
* New implementation supporting concurrent timers, i.e. :
View
2  Rakefile
@@ -14,7 +14,7 @@ CLOBBER.include '**/*.log'
CLOBBER.include '**/Makefile'
CLOBBER.include '**/extconf.h'
-SYSTEM_TIMER_VERSION = "1.1"
+SYSTEM_TIMER_VERSION = "1.1.1"
SYSTEM_TIMER_GEM_NAME = "SystemTimer"
desc 'Default: run unit tests.'
View
4 ext/system_timer/system_timer_native.c
@@ -25,7 +25,7 @@ static void install_ruby_sigalrm_handler(VALUE);
static void restore_original_ruby_sigalrm_handler(VALUE);
static void restore_original_sigalrm_mask_when_blocked();
static void restore_original_timer_interval();
-static void set_itimerval_with_minimum_1s_interval(struct itimerval *, int);
+static void set_itimerval_with_minimum_1s_interval(struct itimerval *, VALUE);
static void set_itimerval(struct itimerval *, int);
static void restore_sigalrm_mask(sigset_t *previous_mask);
static void log_debug(char*, ...);
@@ -262,7 +262,7 @@ static void init_sigalarm_mask()
}
static void set_itimerval_with_minimum_1s_interval(struct itimerval *value,
- int seconds) {
+ VALUE seconds) {
int sanitized_second_interval;
Please sign in to comment.
Something went wrong with that request. Please try again.