nDPId-test: Force collector blocking mode.

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2022-09-25 16:24:05 +02:00
parent 2103ee0811
commit 74f71643da
2 changed files with 255 additions and 0 deletions

View File

@@ -809,6 +809,10 @@ static void * nDPId_mainloop_thread(void * const arg)
/* Replace nDPId JSON socket fd with the one in our pipe and hope that no socket specific code-path triggered. */
reader_threads[0].collector_sockfd = mock_pipefds[PIPE_nDPId];
reader_threads[0].collector_sock_last_errno = 0;
if (set_collector_block(&reader_threads[0]) != 0)
{
goto error;
}
pthread_mutex_lock(&nDPId_start_mutex);