diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2023-05-15 23:14:51 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 23:14:51 +0900 |
commit | ab7bb38aca0d2b5c2b81142a8e67fbff0f1a4a8a (patch) | |
tree | 802485815849e6ac13711f7dd62e91ff951c9426 /vm_core.h | |
parent | bab9966b7a94a63381d53ad2a8a9a53fcddf6148 (diff) | |
download | ruby-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.h | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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__) |