duerst / it.aoyama.ac.jp wrote:
> https://bugs.ruby-lang.org/issues/15072

I think copying the macro for win32 for the !USE_UBF_LIST
case should work(*).  Can you test and commit if it works?
(too tired and might not be back online soon)

```
diff --git a/thread_pthread.c b/thread_pthread.c
index 0159b65291..2fc8f1d681 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1379,7 +1379,8 @@ ubf_wakeup_all_threads(void)
 #define ubf_select 0
 static void ubf_wakeup_all_threads(void) { return; }
 static int ubf_threads_empty(void) { return 1; }
+#define ubf_list_atfork() do {} while (0)
 #endif /* USE_UBF_LIST */
 
 #define TT_DEBUG 0
 #define WRITE_CONST(fd, str) (void)(write((fd),(str),sizeof(str)-1)<0)

```

Something similar for ubf_timer_disarm() might be needed, too.



(*) Because ubf_list stuff is disabled on Cygwin (Not sure why,
    it's always been that way):

#if defined(SIGVTALRM) && !defined(__CYGWIN__)
#  define USE_UBF_LIST 1
#endif

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>