Change remove procedure to keep going if USER_CONTENT umount fails 81/164381/1 submit/tizen/20180110.012731
authorSungbae Yoo <sungbae.yoo@samsung.com>
Tue, 19 Dec 2017 02:36:37 +0000 (11:36 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Tue, 19 Dec 2017 02:36:37 +0000 (11:36 +0900)
Change-Id: Iab84d582185bbfb824912f3d658b10d0b64dae5b
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
server/manager.cpp

index 8c4f22f..ea3ac09 100755 (executable)
@@ -634,8 +634,9 @@ int Manager::removeKrate(const std::string& name)
 
                //umount TZ_USER_CONTENT
                        ::tzplatform_set_user(user.getUid());
-                       if (::umount2(::tzplatform_getenv(TZ_USER_CONTENT), MNT_FORCE) != 0)
-                               throw runtime::Exception("Failed to umount2");
+                       if (::umount2(::tzplatform_getenv(TZ_USER_CONTENT), MNT_FORCE) != 0) {
+                               WARN("Failed to umount2 : TZ_USER_CONTENT");
+                       }
                        ::tzplatform_reset_user();
 
                        //remove krate user