Rename signal name 34/280934/1 accepted/tizen/unified/20220908.013426
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 7 Sep 2022 02:17:49 +0000 (11:17 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 7 Sep 2022 02:20:12 +0000 (11:20 +0900)
Change-Id: I1e6fdd50c6894b74d843ba2e375253d36515a444
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/common/ipc/dbus-names-local.h
src/process/proc-monitor.c
src/process/watchdog/app-watchdog.c

index d8b2c96..73b14c9 100644 (file)
@@ -51,7 +51,7 @@
 #define SIGNAL_PROC_EXCLUDE             "ProcExclude"
 #define SIGNAL_PROC_PRELAUNCH           "ProcPrelaunch"
 #define SIGNAL_PROC_SWEEP               "ProcSweep"
-#define SIGNAL_APP_WATCHDOG             "AppWatchdog"
+#define SIGNAL_PROC_WATCHDOG            "ProcWatchdog"
 #define SIGNAL_PROC_SYSTEMSERVICE       "SystemService"
 #define SIGNAL_PROC_EXCLUDEAPPID        "ProcExcludeByAppid"
 #define SIGNAL_PROC_SET_PRIORITY        "ProcSetPriority"
index 16e3194..a6b3898 100644 (file)
@@ -1148,7 +1148,7 @@ static const struct d_bus_signal dbus_signals[] = {
        {RESOURCED_PATH_PROCESS, RESOURCED_INTERFACE_PROCESS,
            SIGNAL_PROC_SWEEP, proc_dbus_sweep_signal_handler, NULL},
        {RESOURCED_PATH_PROCESS, RESOURCED_INTERFACE_PROCESS,
-           SIGNAL_APP_WATCHDOG, proc_dbus_app_watchdog_handler, NULL},
+           SIGNAL_PROC_WATCHDOG, proc_dbus_app_watchdog_handler, NULL},
        {RESOURCED_PATH_PROCESS, RESOURCED_INTERFACE_PROCESS,
            SIGNAL_PROC_SYSTEMSERVICE, proc_dbus_systemservice_handler, NULL},
        {RESOURCED_PATH_PROCESS, RESOURCED_INTERFACE_PROCESS,
index ba1601d..fa57258 100644 (file)
@@ -97,7 +97,7 @@ static gboolean app_watchdog_cb(gpointer data)
        /* update a method name of all daemons or apps which listen this signal */
        _I("[WATCHDOG] detect app watchdog for pid %d with timeout %u", wai->pid, wai->watchdog_timeout);
        g_dbus_connection_emit_signal(conn, NULL, RESOURCED_PATH_PROCESS,
-                               RESOURCED_INTERFACE_PROCESS, SIGNAL_APP_WATCHDOG,
+                               RESOURCED_INTERFACE_PROCESS, SIGNAL_PROC_WATCHDOG,
                                g_variant_new("(ii)", wai->pid, SIGKILL), &err);
 
        return false;