ret = ms_user_get_media_db_path(uid, &db_path);
if ((ret == MS_MEDIA_ERR_NONE) && (db_path != NULL)) {
- char command_line[MS_FILE_PATH_LEN_MAX] = {0,};
- snprintf(command_line, sizeof(command_line), "%s %s %s", command, dummy_path, db_path);
-
- MS_DBG_ERR("[RESET COMMAND %s]", command_line);
- WEXITSTATUS(system(command_line));
+ int pid;
+ if ((pid = fork()) == 0) {
+ execl(command, command, dummy_path, db_path, NULL);
+ exit(0);
+ }
}
MS_SAFE_FREE(db_path);
-
MS_DBG_ERR("[MEDIA DB RESET END]");
return MS_MEDIA_ERR_NONE;