From: Rusty Lynch Date: Mon, 16 Sep 2013 21:09:50 +0000 (-0700) Subject: Remove socket cleanup code X-Git-Tag: submit/tizen/20130916.223357~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fappfw%2Fnotification-service.git;a=commitdiff_plain;h=a298f8726f54414abf7d1d4adde7e6d72902ded0 Remove socket cleanup code Change-Id: I04d379037991c7e450d7905213b576e12108e08e --- diff --git a/service_common.c b/service_common.c index db79011..b53d1ff 100644 --- a/service_common.c +++ b/service_common.c @@ -575,18 +575,6 @@ struct service_context *service_common_create(const char *addr, int (*service_th return NULL; } - /* - * cleanup old socket file - */ - struct stat tmp; - if (!stat(addr, &tmp)) { - if (unlink(addr)) { - perror("Unable to unlink old socket file"); - free(svc_ctx); - return NULL; - } - } - svc_ctx->fd = secure_socket_create_server(addr); if (svc_ctx->fd < 0) { free(svc_ctx);