diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-25 03:14:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-25 03:14:45 +0000 |
commit | 63aafb2004937c5ec8f514dc317833f791f205a1 (patch) | |
tree | 63dc48106b2a1bfb7589c911865225de73e572d0 /process.c | |
parent | 8f79623184f7256e55320bd6a6c1b886a5bcd9c3 (diff) | |
download | ruby-63aafb2004937c5ec8f514dc317833f791f205a1.tar.gz |
process.c: initialize static IDs first
* process.c (Init_process): initialize static IDs before constant
definitions. [ruby-core:66445]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -7519,7 +7519,7 @@ VALUE rb_mProcID_Syscall; */ void -Init_process(void) +InitVM_process(void) { #undef rb_intern #define rb_intern(str) rb_intern_const(str) @@ -7899,7 +7899,11 @@ Init_process(void) rb_define_module_function(rb_mProcID_Syscall, "setresuid", p_sys_setresuid, 3); rb_define_module_function(rb_mProcID_Syscall, "setresgid", p_sys_setresgid, 3); rb_define_module_function(rb_mProcID_Syscall, "issetugid", p_sys_issetugid, 0); +} +void +Init_process(void) +{ id_in = rb_intern("in"); id_out = rb_intern("out"); id_err = rb_intern("err"); @@ -7941,4 +7945,6 @@ Init_process(void) id_MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC = rb_intern("MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC"); #endif id_hertz = rb_intern("hertz"); + + InitVM(process); } |