From: Munkyu Im Date: Thu, 17 Apr 2014 08:41:13 +0000 (+0900) Subject: enuld: remove sys_event X-Git-Tag: submit/tizen/20150527.025434~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c0a4b7a8fa2a55edd47c6e255a08e126605810e;p=platform%2Fadaptation%2Femulator%2Femulator-daemon.git enuld: remove sys_event sys_event is not necessary any more. platform mount/umount automatically when sdcard is attached/detached. Change-Id: I008ffd961ae017cc89fca0f29b4f296d813b19b1 Signed-off-by: Munkyu Im --- diff --git a/packaging/emuld.spec b/packaging/emuld.spec index 1d1a9ae..6b85c58 100644 --- a/packaging/emuld.spec +++ b/packaging/emuld.spec @@ -1,5 +1,5 @@ Name: emuld -Version: 0.4.5 +Version: 0.4.6 Release: 0 Summary: Emulator daemon License: Apache-2.0 diff --git a/src/emuld_proc.cpp b/src/emuld_proc.cpp index 0c7dedc..9ffaed6 100644 --- a/src/emuld_proc.cpp +++ b/src/emuld_proc.cpp @@ -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; }