summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 00d8b43986..7ca6625d7c 100644
--- a/thread.c
+++ b/thread.c
@@ -2288,7 +2288,8 @@ rb_notify_fd_close(int fd, struct list_head *busy)
void
rb_thread_fd_close(int fd)
{
- LIST_HEAD(busy);
+ struct list_head busy;
+ busy.n.next = busy.n.prev = &busy.n;
if (rb_notify_fd_close(fd, &busy)) {
do rb_thread_schedule(); while (!list_empty(&busy));