From 31448f2ae6acc628524db5f9294d56846aa3c199 Mon Sep 17 00:00:00 2001 From: "minje.ahn" Date: Thu, 18 Jan 2024 08:53:38 +0900 Subject: [PATCH] Remove server status writing method Change-Id: I3a56d5e4b050e611fd0a2c2c45257e9580fa1182 Signed-off-by: minje.ahn --- src/server/media-server-main.c | 29 ----------------------------- 1 file changed, 29 deletions(-) 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"); -- 2.7.4