Remove server status writing method 64/304464/4
authorminje.ahn <minje.ahn@samsung.com>
Wed, 17 Jan 2024 23:53:38 +0000 (08:53 +0900)
committerMinje ahn <minje.ahn@samsung.com>
Thu, 18 Jan 2024 03:24:25 +0000 (03:24 +0000)
Change-Id: I3a56d5e4b050e611fd0a2c2c45257e9580fa1182
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
src/server/media-server-main.c

index 8c4d2b6..9da4cd2 100644 (file)
@@ -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");