Archived
3
0

set new_connection to 0 if nobody connected

This commit is contained in:
Philippe PITTOLI 2018-10-05 22:33:43 +02:00
parent 2e8a85cdd9
commit 0aba9750fb

View File

@ -187,6 +187,7 @@ static int getMaxFd(struct ipc_clients *clients)
int ipc_server_select (struct ipc_clients *clients, struct ipc_service *srv
, struct ipc_clients *active_clients, int *new_connection)
{
*new_connection = 0;
assert (clients != NULL);
assert (active_clients != NULL);
@ -241,4 +242,4 @@ int ipc_server_select (struct ipc_clients *clients, struct ipc_service *srv
}
return 0;
}
}