--- libaitrpc/src/srv.c 2015/06/24 22:44:24 1.26.2.3 +++ libaitrpc/src/srv.c 2015/06/24 23:02:28 1.26.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: srv.c,v 1.26.2.3 2015/06/24 22:44:24 misho Exp $ +* $Id: srv.c,v 1.26.2.4 2015/06/24 23:02:28 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1478,6 +1478,9 @@ rpc_srv_endBLOBServer(rpc_srv_t * __restrict srv) srv->srv_blob.kill = 1; schedEnd(&srv->srv_blob.root); + + if (srv->srv_blob.server.cli_sa.sa.sa_family == AF_LOCAL) + unlink(srv->srv_blob.server.cli_sa.sun.sun_path); } /* @@ -1700,6 +1703,9 @@ rpc_srv_endServer(rpc_srv_t ** __restrict psrv) sleep(RPC_SCHED_POLLING); schedEnd(&(*psrv)->srv_root); + + if ((*psrv)->srv_server.cli_sa.sa.sa_family == AF_LOCAL) + unlink((*psrv)->srv_server.cli_sa.sun.sun_path); pthread_mutex_destroy(&(*psrv)->srv_funcs.mtx); e_free(*psrv);