diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | io.c | 8 | ||||
-rw-r--r-- | process.c | 8 | ||||
-rw-r--r-- | version.h | 6 |
5 files changed, 17 insertions, 12 deletions
@@ -1,3 +1,8 @@ +Thu Mar 18 13:51:22 2010 NARUSE, Yui <[email protected]> + + * io.c, eval.c, process.c: add linux to r26371's condition. + patched by Motohiro KOSAKI [ruby-core:28151] + Wed Mar 17 06:39:59 2010 Nobuyoshi Nakada <[email protected]> * ruby.h (rb_warning, rb_sys_warning): fixed typo in rdoc. @@ -12524,7 +12524,7 @@ rb_thread_start_timer() safe_mutex_lock(&time_thread.lock); if (pthread_create(&time_thread.thread, 0, thread_timer, args) == 0) { thread_init = 1; -#if !defined(__NetBSD__) && !defined(__APPLE__) +#if !defined(__NetBSD__) && !defined(__APPLE__) && !defined(linux) pthread_atfork(0, 0, rb_thread_stop_timer); #endif pthread_cond_wait(&start, &time_thread.lock); @@ -3270,7 +3270,7 @@ retry: } retry: -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) rb_thread_stop_timer(); #endif switch ((pid = fork())) { @@ -3300,7 +3300,7 @@ retry: ruby_sourcefile, ruby_sourceline, pname); _exit(127); } -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) rb_thread_start_timer(); #endif rb_io_synchronized(RFILE(orig_stdout)->fptr); @@ -3308,7 +3308,7 @@ retry: return Qnil; case -1: /* fork failed */ -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) rb_thread_start_timer(); #endif if (errno == EAGAIN) { @@ -3331,7 +3331,7 @@ retry: break; default: /* parent */ -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) rb_thread_start_timer(); #endif if (pid < 0) rb_sys_fail(pname); @@ -1331,11 +1331,11 @@ rb_f_fork(obj) fflush(stderr); #endif -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) before_exec(); #endif pid = fork(); -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) after_exec(); #endif switch (pid) { @@ -1578,7 +1578,7 @@ rb_f_system(argc, argv) chfunc = signal(SIGCHLD, SIG_DFL); retry: -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) before_exec(); #endif pid = fork(); @@ -1588,7 +1588,7 @@ rb_f_system(argc, argv) rb_protect(proc_exec_args, (VALUE)&earg, NULL); _exit(127); } -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) after_exec(); #endif if (pid < 0) { @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.8.8" -#define RUBY_RELEASE_DATE "2010-03-17" +#define RUBY_RELEASE_DATE "2010-03-18" #define RUBY_VERSION_CODE 188 -#define RUBY_RELEASE_CODE 20100317 +#define RUBY_RELEASE_CODE 20100318 #define RUBY_PATCHLEVEL -1 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 8 #define RUBY_RELEASE_YEAR 2010 #define RUBY_RELEASE_MONTH 3 -#define RUBY_RELEASE_DAY 17 +#define RUBY_RELEASE_DAY 18 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |