enuld: remove sys_event 53/19753/1
authorMunkyu Im <munkyu.im@samsung.com>
Thu, 17 Apr 2014 08:41:13 +0000 (17:41 +0900)
committerMunkyu Im <munkyu.im@samsung.com>
Thu, 17 Apr 2014 08:41:13 +0000 (17:41 +0900)
sys_event is not necessary any more.
platform mount/umount automatically when sdcard is attached/detached.

Change-Id: I008ffd961ae017cc89fca0f29b4f296d813b19b1
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
packaging/emuld.spec
src/emuld_proc.cpp

index 1d1a9ae28f77a9b408c2408c6ae6e6b7e364e8b1..6b85c5845bfff5657c9e221d932ce84d6adcf1b6 100644 (file)
@@ -1,5 +1,5 @@
 Name: emuld
-Version: 0.4.5
+Version: 0.4.6
 Release: 0
 Summary: Emulator daemon
 License: Apache-2.0
index 0c7dedc27ac11c11e2a66a622ddd63241c06a801..9ffaed634bcf8f95846f0ec52bd8d6f4a79cd7ff 100644 (file)
@@ -186,12 +186,8 @@ void* mount_sdcard(void* data)
                 }
 
                 free(tmp);
-            }
-
-            //
-
-            if (ret == 0) {
-                ret = system("/usr/bin/sys_event mmcblk_add");
+            } else {
+                LOGERR("malloc() failed");
             }
 
             break;
@@ -273,7 +269,6 @@ int umount_sdcard(const int fd, bool is_evdi)
 
             memset(SDpath, '\0', sizeof(SDpath));
             sprintf(SDpath, "umounted");
-            ret = system("/usr/bin/sys_event mmcblk_remove");
 
             break;
         }