aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2023-05-15 23:14:51 +0900
committerGitHub <noreply@github.com>2023-05-15 23:14:51 +0900
commitab7bb38aca0d2b5c2b81142a8e67fbff0f1a4a8a (patch)
tree802485815849e6ac13711f7dd62e91ff951c9426 /vm_core.h
parentbab9966b7a94a63381d53ad2a8a9a53fcddf6148 (diff)
downloadruby-ab7bb38aca0d2b5c2b81142a8e67fbff0f1a4a8a.tar.gz
Remove explicit SIGCHLD handling. (#7816)
* Remove unused SIGCHLD handling. * Remove unused `init_sigchld`. * Remove unnecessary `#define RUBY_SIGCHLD (0)`. * Remove unused `SIGCHLD_LOSSY`.
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/vm_core.h b/vm_core.h
index 7cdd40671d..f0f393e497 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -132,18 +132,9 @@ extern int ruby_assert_critical_section_entered;
#define RUBY_NSIG NSIG
#if defined(SIGCLD)
-# define RUBY_SIGCHLD (SIGCLD)
+# define RUBY_SIGCHLD (SIGCLD)
#elif defined(SIGCHLD)
-# define RUBY_SIGCHLD (SIGCHLD)
-#else
-# define RUBY_SIGCHLD (0)
-#endif
-
-/* platforms with broken or non-existent SIGCHLD work by polling */
-#if defined(__APPLE__)
-# define SIGCHLD_LOSSY (1)
-#else
-# define SIGCHLD_LOSSY (0)
+# define RUBY_SIGCHLD (SIGCHLD)
#endif
#if defined(SIGSEGV) && defined(HAVE_SIGALTSTACK) && defined(SA_SIGINFO) && !defined(__NetBSD__)