diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 79b98a98c5..bde5d1cc77 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1268,4 +1268,16 @@ ruby_stack_overflowed_p(const rb_thread_t *th, const void *addr) } #endif +int +rb_reserved_fd_p(int fd) +{ + if (fd == timer_thread_pipe[0] || + fd == timer_thread_pipe[1]) { + return 1; + } + else { + return 0; + } +} + #endif /* THREAD_SYSTEM_DEPENDENT_IMPLEMENTATION */ |