Skip to content

Commit 2d68d3d

Browse files
committed
Fix logic in __gnatcoll_wait_for_sigchld
We were not passing a NULL struct timeval pointer in the case of an infinite timeout.
1 parent 3757c09 commit 2d68d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/unix/process-wrappers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ int __gnatcoll_wait_for_sigchld (int fd, sint_64 timeout)
104104
}
105105

106106
while (tv.tv_sec > 0 || tv.tv_usec > 0) {
107-
retval = select(fd + 1, &fd_list, NULL, NULL, &tv);
107+
retval = select(fd + 1, &fd_list, NULL, NULL, effective_timeout);
108108
if (retval > 0)
109109
{
110110
read (fd, buf, 1);

0 commit comments

Comments
 (0)