Fix function name.

This commit is contained in:
levlam 2022-08-22 00:17:53 +03:00
parent 551d42b9cf
commit 959c7261c1
2 changed files with 4 additions and 4 deletions

View File

@ -191,10 +191,10 @@ Status set_extended_signal_handler(SignalType type, extended_signal_handler func
return set_signal_handler_impl(std::move(signals), siginfo_handler);
}
Status set_runtime_signal_handler(int runtime_signal_number, void (*func)(int)) {
Status set_real_time_signal_handler(int real_time_signal_number, void (*func)(int)) {
#ifdef SIGRTMIN
CHECK(SIGRTMIN + runtime_signal_number <= SIGRTMAX);
return set_signal_handler_impl({SIGRTMIN + runtime_signal_number}, func == nullptr ? SIG_DFL : func);
CHECK(SIGRTMIN + real_time_signal_number <= SIGRTMAX);
return set_signal_handler_impl({SIGRTMIN + real_time_signal_number}, func == nullptr ? SIG_DFL : func);
#else
return Status::OK();
#endif

View File

@ -20,7 +20,7 @@ Status set_signal_handler(SignalType type, void (*func)(int sig)) TD_WARN_UNUSED
Status set_extended_signal_handler(SignalType type, void (*func)(int sig, void *addr)) TD_WARN_UNUSED_RESULT;
Status set_runtime_signal_handler(int runtime_signal_number, void (*func)(int sig)) TD_WARN_UNUSED_RESULT;
Status set_real_time_signal_handler(int real_time_signal_number, void (*func)(int sig)) TD_WARN_UNUSED_RESULT;
Status ignore_signal(SignalType type) TD_WARN_UNUSED_RESULT;