From d4f4490a3f6572418db7d908561684d44967a407 Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Mon, 8 May 2023 04:49:22 -0500 Subject: [PATCH] Change2 --- src/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index 0f644e9b308..0c08f37c701 100644 --- a/src/process.c +++ b/src/process.c @@ -520,7 +520,7 @@ int process_output_buffers_ready_copy_fd_set(struct fd_set * destination) { process_output_ready_fds_mutex_lock(); - FD_COPY(&process_output_buffers_ready_fds, destination); + memcpy(( destination ), ( &process_output_buffers_ready_fds ), sizeof( fd_set )); int count = process_output_buffers_ready_count; process_output_ready_fds_mutex_unlock(); return count; @@ -888,7 +888,7 @@ process_output_producer_thread(void * args) struct timespec * select_timeout = readingCount == 0 ? NULL : &no_timeout; pselect(maxFd + 1, &fds, NULL, NULL, select_timeout, NULL); - FD_COPY(&fds, &ready_fds); + memcpy(( &ready_fds ), ( &fds ), sizeof( fd_set )); } return NULL; }