From: minje.ahn Date: Wed, 17 Jan 2024 23:53:38 +0000 (+0900) Subject: Remove server status writing method X-Git-Tag: accepted/tizen/unified/20240119.021436~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F304464%2F4;p=platform%2Fcore%2Fmultimedia%2Fmedia-server.git Remove server status writing method Change-Id: I3a56d5e4b050e611fd0a2c2c45257e9580fa1182 Signed-off-by: minje.ahn --- diff --git a/src/server/media-server-main.c b/src/server/media-server-main.c index 8c4d2b6..9da4cd2 100644 --- a/src/server/media-server-main.c +++ b/src/server/media-server-main.c @@ -130,34 +130,6 @@ static void __ms_smarthub_vconf_cb(void *data) } #endif -int ms_write_media_server_status(void) -{ - FILE * fp = NULL; - const char *path = "/tmp/media-server"; - const char *status = "MEDIA_SERVER OK"; - - if (g_file_test(path, G_FILE_TEST_IS_SYMLINK)) { - MS_DBG_ERR("path is symbolic link. file name : %s", path); - return MS_MEDIA_ERR_INVALID_PARAMETER; - } - - fp = fopen(path, "wt"); - if (fp == NULL) { - MS_DBG_SERR("fp is NULL. file name : %s", path); - return MS_MEDIA_ERR_INTERNAL; - } - - if (fputs(status, fp) < 0) { - MS_DBG_ERR("fputs failed"); - MS_DBG_STRERROR(); - } - - fclose(fp); - - return MS_MEDIA_ERR_NONE; -} - - #ifndef _USE_TVPD_MODE static void __power_off_cb(void *data) { @@ -317,7 +289,6 @@ int main(int argc, char **argv) malloc_trim(0); MS_DBG_INFO("Media Server is running"); - ms_write_media_server_status(); #ifdef _USE_TVPD_MODE if (!ms_config_set_int(MS_SERVER_STATUS, 1)) MS_DBG_ERR("Fail to change sever status");