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 9d9f43289557260e6ffecce1d9d2275e146b96cd..9ae344c93bde27455ff5f2f90eee93e175e96048 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;