--- libaitrpc/src/srv.c 2015/07/02 23:21:06 1.27.2.2 +++ libaitrpc/src/srv.c 2015/07/19 23:38:09 1.27.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: srv.c,v 1.27.2.2 2015/07/02 23:21:06 misho Exp $ +* $Id: srv.c,v 1.27.2.3 2015/07/19 23:38:09 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1606,6 +1606,9 @@ rpc_srv_endServer(rpc_srv_t ** __restrict psrv) /* if send kill to blob server */ rpc_srv_endBLOBServer(*psrv); + /* wait for BLOB server done */ + while ((*psrv)->srv_blob.root) + usleep(1000); (*psrv)->srv_kill = 1; sleep(RPC_SCHED_POLLING);