From: Hwankyu Jhun Date: Tue, 6 Jun 2023 23:04:24 +0000 (+0000) Subject: Use macro instead of const keyword X-Git-Tag: accepted/tizen/unified/20230607.160245~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=149a1ab6aff23081b75f692ce0bb24d16d77283f;p=platform%2Fcore%2Fappfw%2Fapp-core.git Use macro instead of const keyword The signal number is not same on all devices. Unfortunately, calling sigaction() is failed in the some device. This patch is to fix sigacation() failure issue. Change-Id: Ifb469bcaf43d506f38902c71049f3f1a084eecfd Signed-off-by: Hwankyu Jhun --- diff --git a/tizen-cpp/app-core-cpp/anr_monitor_private.cc b/tizen-cpp/app-core-cpp/anr_monitor_private.cc index 9d9f432..9ae344c 100644 --- a/tizen-cpp/app-core-cpp/anr_monitor_private.cc +++ b/tizen-cpp/app-core-cpp/anr_monitor_private.cc @@ -22,13 +22,10 @@ #include "app-core-cpp/backtrace_private.hh" #include "common/log_private.hh" +#define SIGRTANR (SIGRTMIN + 3) + namespace tizen_cpp { namespace internal { -namespace { - -const int SIGRTANR = SIGRTMIN + 3; - -} // namespace AnrMonitor::AnrMonitor() { struct sigaction action;