Permalink
Browse files

Updated to use RT signal instead of SIGALARM

  • Loading branch information...
1 parent a28ad1f commit cae505a50756b09787143c40a99110fe865012ad Arthur Taylor committed Mar 29, 2011
Showing with 4 additions and 3 deletions.
  1. +2 −2 Rakefile
  2. +2 −1 ext/system_timer/system_timer_native.c
View
@@ -14,8 +14,8 @@ CLOBBER.include '**/*.log'
CLOBBER.include '**/Makefile'
CLOBBER.include '**/extconf.h'
-SYSTEM_TIMER_VERSION = "1.2.3"
-SYSTEM_TIMER_GEM_NAME = "SystemTimer"
+SYSTEM_TIMER_VERSION = "1.2.3.1"
+SYSTEM_TIMER_GEM_NAME = "codders-SystemTimer"
desc 'Default: run unit tests.'
task :default => :test
@@ -14,6 +14,7 @@
#define DO_NOT_DISPLAY_ERRNO 0
#define MICRO_SECONDS 1000000.0
#define MINIMUM_TIMER_INTERVAL_IN_SECONDS 0.2
+#define RT_SIGNAL_ID 10
VALUE rb_cSystemTimer;
@@ -269,7 +270,7 @@ static void clear_pending_sigalrm_for_ruby_threads()
static void init_sigalarm_mask()
{
sigemptyset(&sigalarm_mask);
- sigaddset(&sigalarm_mask, SIGALRM);
+ sigaddset(&sigalarm_mask, SIGRTMIN + RT_SIGNAL_ID);
return;
}

0 comments on commit cae505a

Please sign in to comment.