From: normalperson@... Date: 2017-04-26T21:30:09+00:00 Subject: [ruby-core:80889] [Ruby trunk Misc#13514] [PATCH] thread_pthread.c (native_sleep): preserve old unblock function Issue #13514 has been reported by normalperson (Eric Wong). ---------------------------------------- Misc #13514: [PATCH] thread_pthread.c (native_sleep): preserve old unblock function https://bugs.ruby-lang.org/issues/13514 * Author: normalperson (Eric Wong) * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Do not blindly clobber UBF if one exists, emulating the behavior of the set_unblock_function and reset_unblock_function pair. I think the native_sleep implementation in thread_win32.c, can use a similar change; but I do not run non-Free software so I cannot test. I'm pretty sure this is correct, and will commit in a few days. On the other hand, I'm not sure if anybody is affected by this. If it's OK, somebody should also update thread_win32.c since I'm not comfortable doing so without being able to test. ---Files-------------------------------- 0001-thread_pthread.c-native_sleep-preserve-old-unblock-f.patch (1.21 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: