Use macro instead of const keyword 36/293836/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 6 Jun 2023 23:04:24 +0000 (23:04 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 6 Jun 2023 23:05:34 +0000 (23:05 +0000)
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 <h.jhun@samsung.com>
tizen-cpp/app-core-cpp/anr_monitor_private.cc

index 9d9f432..9ae344c 100644 (file)
 #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;