diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-05-21 23:00:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-05-21 23:00:27 +0900 |
commit | 7f7a8fa555c3f12996114d13dc6908ea4e73c5b3 (patch) | |
tree | e7fb6eea87f7b7e19132edfd97824619b63e119c /internal/process.h | |
parent | 08675889802be222ae01db7d0d54c7e1b45bffc5 (diff) |
Put `rb_fork` back into process.c
Now, calling `rb_fork` directly breaks the PID cache and the timer
thread, so must use `rb_fork_ruby` or similar instead.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7834
Diffstat (limited to 'internal/process.h')
-rw-r--r-- | internal/process.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/internal/process.h b/internal/process.h index b9c52aebaa..fd4994cb4b 100644 --- a/internal/process.h +++ b/internal/process.h @@ -22,7 +22,6 @@ #include "ruby/ruby.h" /* for VALUE */ #include "internal/compilers.h" /* for __has_warning */ #include "internal/imemo.h" /* for RB_IMEMO_TMPBUF_PTR */ -#include "internal/warnings.h" /* for COMPILER_WARNING_PUSH */ #define RB_MAX_GROUPS (65536) @@ -122,17 +121,4 @@ ARGVSTR2ARGC(VALUE argv_str) return i - 1; } -#ifdef HAVE_WORKING_FORK -COMPILER_WARNING_PUSH -#if __has_warning("-Wdeprecated-declarations") || RBIMPL_COMPILER_IS(GCC) -COMPILER_WARNING_IGNORED(-Wdeprecated-declarations) -#endif -static inline rb_pid_t -rb_fork(void) -{ - return fork(); -} -COMPILER_WARNING_POP -#endif - #endif /* INTERNAL_PROCESS_H */ |