Exclude dbus service from stop units 95/196395/6 accepted/tizen/4.0/unified/20190101.230313 submit/tizen_4.0/20181228.090903
authorseolheui, kim <s414.kim@samsung.com>
Fri, 28 Dec 2018 02:56:38 +0000 (11:56 +0900)
committerseolheui, kim <s414.kim@samsung.com>
Fri, 28 Dec 2018 05:54:01 +0000 (14:54 +0900)
Change-Id: I4e1a00207b3889c957eda8c978520d7fa833b1d4
Signed-off-by: seolheui, kim <s414.kim@samsung.com>
server/internal-encryption.cpp

index 46b389b..b115034 100644 (file)
@@ -239,7 +239,8 @@ void stopSystemdUnits()
                                                                                .get("(o)", &unit);
 
                        auto unescapedName = getDecodedPath(unit, "/org/freedesktop/systemd1/unit/");
-                       unitsToStop.insert(unescapedName);
+                       if (unescapedName.find("dbus", 0, 4) == std::string::npos)
+                               unitsToStop.insert(unescapedName);
                } catch (runtime::Exception &e) {
                        ERROR(SINK, "Killing process: " + std::to_string(pid));
                        ::kill(pid, SIGKILL);