diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2023-03-09 16:05:47 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 16:05:47 +1300 |
commit | 1658e7d96696a656d9bd0a0c84c82cde86914ba2 (patch) | |
tree | 8557b08cb8650da57dc69457c6aab1918fb75c45 /vm_core.h | |
parent | ea8b5e7359cf88ce02f30d6ac4beb6e4cb6dcb78 (diff) |
Remove SIGCHLD `waidpid`. (#7476)
* Remove `waitpid_lock` and related code.
* Remove un-necessary test.
* Remove `rb_thread_sleep_interruptible` dead code.
Notes
Notes:
Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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); @@ -651,9 +648,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: */ @@ -1761,9 +1755,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); } |