ruby/internal/signal.h
Erik Berlin eab4a0bc8d
Fix race condition in signal handler query (#13712)
* Fix race condition in signal handler query

* Initialize signal lock dynamically and reset after fork

* Fix signal handler mutex initialization conditions
2025-06-28 13:55:59 +09:00

25 lines
824 B
C

#ifndef INTERNAL_SIGNAL_H /*-*-C-*-vi:se ft=c:*/
#define INTERNAL_SIGNAL_H
/**
* @author Ruby developers <ruby-core@ruby-lang.org>
* @copyright This file is a part of the programming language Ruby.
* Permission is hereby granted, to either redistribute and/or
* modify this file, provided that the conditions mentioned in the
* file COPYING are met. Consult the file for details.
* @brief Internal header for SignalException.
*/
/* signal.c */
extern int ruby_enable_coredump;
int rb_get_next_signal(void);
#ifdef POSIX_SIGNAL
void (*ruby_posix_signal(int, void (*)(int)))(int);
#endif
RUBY_SYMBOL_EXPORT_BEGIN
/* signal.c (export) */
void rb_signal_atfork(void);
RUBY_SYMBOL_EXPORT_END
#endif /* INTERNAL_SIGNAL_H */