Skip to content

Commit

Permalink
Temporarily disable fork
Browse files Browse the repository at this point in the history
  • Loading branch information
wks committed Dec 20, 2023
1 parent ff02d2e commit 36b134b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions process.c
Original file line number Diff line number Diff line change
Expand Up @@ -9135,7 +9135,15 @@ InitVM_process(void)
#endif

rb_define_singleton_method(rb_mProcess, "exec", f_exec, -1);
#if USE_MMTK
// FIXME: MMTk currently doesn't support forking, so Process will not respond to :fork for not.
// We should add necessary mechanism to mmtk-core in order to support forking.
if (!rb_mmtk_enabled_p()) {
#endif
rb_define_singleton_method(rb_mProcess, "fork", rb_f_fork, 0);
#if USE_MMTK
}
#endif
rb_define_singleton_method(rb_mProcess, "spawn", rb_f_spawn, -1);
rb_define_singleton_method(rb_mProcess, "exit!", rb_f_exit_bang, -1);
rb_define_singleton_method(rb_mProcess, "exit", f_exit, -1);
Expand Down

0 comments on commit 36b134b

Please sign in to comment.