diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-17 06:38:18 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-17 06:38:18 +0000 |
| commit | 6266ccf0a8bfe3355bfd3c9478a5e08674857ecb (patch) | |
| tree | a4b269efa6e8341c107625d3ceb4344374cc8595 /eval.c | |
| parent | 4a9114dbcbf0427c631ac51240b7daf3ec177738 (diff) | |
| download | ruby-6266ccf0a8bfe3355bfd3c9478a5e08674857ecb.tar.gz ruby-6266ccf0a8bfe3355bfd3c9478a5e08674857ecb.tar.xz ruby-6266ccf0a8bfe3355bfd3c9478a5e08674857ecb.zip | |
* lib/cgi.rb (CGI::QueryExtension::Value::[]): should work like
String#[] if more than one arguments are specified.
* lib/delegate.rb: avoid using common instance name as "@obj".
* lib/cgi.rb (CGI::QueryExtension::Value): Value is no longer
subclass of String, but DelegateClass(String).
* ext/curses/extconf.rb: restore function check for init_color.
[ruby-list:38905]
* Makefile.in: need to specify $(MAINLIBS) for the miniruby
generation rule.
* configure.in: better FreeBSD -lc_r support.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -9492,12 +9492,6 @@ static int thread_init = 0; # define PTHREAD_TIMER #endif -#if defined(POSIX_SIGNAL) -# define ruby_signal(x,y) posix_signal((x), (y)) -#else -# define ruby_signal(x,y) signal((x), (y)) -#endif - #if defined(PTHREAD_TIMER) || defined(HAVE_SETITIMER) static void catch_timer(sig) @@ -9589,7 +9583,11 @@ rb_thread_start_0(fn, arg, th) if (!thread_init) { thread_init = 1; #if defined(HAVE_SETITIMER) || defined(PTHREAD_TIMER) - ruby_signal(SIGVTALRM, catch_timer); +#if defined(POSIX_SIGNAL) + posix_signal(SIGVTALRM, catch_timer); +#else + signal(SIGVTALRM, catch_timer); +#endif #ifdef PTHREAD_TIMER pthread_create(&time_thread, 0, thread_timer, 0); |
