summaryrefslogtreecommitdiff
path: root/server/thumb-server.c
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2015-06-03 11:35:52 +0900
committerMinje ahn <minje.ahn@samsung.com>2015-06-03 00:24:56 -0700
commitc896230ef091a244204b17bc9ab0ffa974ce2031 (patch)
tree97e54161e040dbc59c0945184ed3a0abc1f3cc02 /server/thumb-server.c
parent6ece5e54778f9a8bea3f23f3a932a884be3c9f87 (diff)
downloadlibmedia-thumbnail-c896230ef091a244204b17bc9ab0ffa974ce2031.tar.gz
libmedia-thumbnail-c896230ef091a244204b17bc9ab0ffa974ce2031.tar.bz2
libmedia-thumbnail-c896230ef091a244204b17bc9ab0ffa974ce2031.zip
Modify error type
Change-Id: Ie19c9bb70115a9097d45e8a18f52ad72cf7beeb2 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'server/thumb-server.c')
-rwxr-xr-xserver/thumb-server.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/server/thumb-server.c b/server/thumb-server.c
index ca5fd48..4248f24 100755
--- a/server/thumb-server.c
+++ b/server/thumb-server.c
@@ -24,7 +24,6 @@
#include "media-thumb-ipc.h"
#include "media-thumb-util.h"
#include "thumb-server-internal.h"
-
#include <pthread.h>
#include <heynoti.h>
#include <vconf.h>
@@ -92,12 +91,12 @@ int main()
/* Create and bind new UDP socket */
if (!_thumb_server_prepare_socket(&sockfd)) {
- thumb_err("Failed to create socket\n");
+ thumb_err("Failed to create socket");
return -1;
}
g_thumb_server_mainloop = g_main_loop_new(context, FALSE);
-
+
/* Create new channel to watch udp socket */
channel = g_io_channel_unix_new(sockfd);
source = g_io_create_watch(channel, G_IO_IN);
@@ -117,15 +116,13 @@ int main()
g_source_set_callback(sig_handler_src, (GSourceFunc)_media_thumb_signal_handler, NULL, NULL);
g_source_attach(sig_handler_src, context);
*/
-
thumb_dbg("************************************");
thumb_dbg("*** Thumbnail server is running ***");
thumb_dbg("************************************");
g_main_loop_run(g_thumb_server_mainloop);
-
- thumb_dbg("Thumbnail server is shutting down...");
+ thumb_dbg("Thumbnail server is shutting down...");
g_io_channel_shutdown(channel, FALSE, NULL);
g_io_channel_unref(channel);
_thumb_daemon_finish_jobs();