summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2023-03-15 19:48:27 +1300
committerGitHub <noreply@github.com>2023-03-15 19:48:27 +1300
commit7fd53eeb46db261bbc20025cdab70096245a5cbe (patch)
tree49d8705a22f3c8e872469a950991bf1cbe65bfae /vm_core.h
parentce47ee00ae295b31dc023afb935a60ecc39a1f4b (diff)
downloadruby-7fd53eeb46db261bbc20025cdab70096245a5cbe.tar.gz
Remove SIGCHLD `waidpid`. (#7527)
* Remove `waitpid_lock` and related code. * Remove un-necessary test. * Remove `rb_thread_sleep_interruptible` dead code.
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/vm_core.h b/vm_core.h
index 66602efea7..724c8cd739 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -145,9 +145,6 @@ extern int ruby_assert_critical_section_entered;
# define SIGCHLD_LOSSY (0)
#endif
-/* define to 0 to test old code path */
-#define WAITPID_USE_SIGCHLD (RUBY_SIGCHLD || SIGCHLD_LOSSY)
-
#if defined(SIGSEGV) && defined(HAVE_SIGALTSTACK) && defined(SA_SIGINFO) && !defined(__NetBSD__)
# define USE_SIGALTSTACK
void *rb_allocate_sigaltstack(void);
@@ -654,9 +651,6 @@ typedef struct rb_vm_struct {
#endif
rb_serial_t fork_gen;
- rb_nativethread_lock_t waitpid_lock;
- struct ccan_list_head waiting_pids; /* PID > 0: <=> struct waitpid_state */
- struct ccan_list_head waiting_grps; /* PID <= 0: <=> struct waitpid_state */
struct ccan_list_head waiting_fds; /* <=> struct waiting_fd */
/* set in single-threaded processes only: */
@@ -1764,9 +1758,7 @@ static inline void
rb_vm_living_threads_init(rb_vm_t *vm)
{
ccan_list_head_init(&vm->waiting_fds);
- ccan_list_head_init(&vm->waiting_pids);
ccan_list_head_init(&vm->workqueue);
- ccan_list_head_init(&vm->waiting_grps);
ccan_list_head_init(&vm->ractor.set);
}