summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
340924f)
Change-Id: I04d379037991c7e450d7905213b576e12108e08e
- /*
- * 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);
svc_ctx->fd = secure_socket_create_server(addr);
if (svc_ctx->fd < 0) {
free(svc_ctx);