mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merge revision(s) 73f9831a57
: [Backport #17941]
POSIX timer cannot be shared in forked process [Bug #17941] --- thread_pthread.c | 1 + 1 file changed, 1 insertion(+)
This commit is contained in:
parent
2dd18df4a3
commit
d4f4ae599f
2 changed files with 3 additions and 2 deletions
|
@ -1759,6 +1759,7 @@ ubf_timer_disarm(void)
|
|||
#if UBF_TIMER == UBF_TIMER_POSIX
|
||||
rb_atomic_t prev;
|
||||
|
||||
if (timer_posix.owner && timer_posix.owner != getpid()) return;
|
||||
prev = ATOMIC_CAS(timer_posix.state, RTIMER_ARMED, RTIMER_DISARM);
|
||||
switch (prev) {
|
||||
case RTIMER_DISARM: return; /* likely */
|
||||
|
|
|
@ -12,11 +12,11 @@
|
|||
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
||||
#define RUBY_VERSION_TEENY 2
|
||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||
#define RUBY_PATCHLEVEL 95
|
||||
#define RUBY_PATCHLEVEL 96
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2021
|
||||
#define RUBY_RELEASE_MONTH 6
|
||||
#define RUBY_RELEASE_DAY 3
|
||||
#define RUBY_RELEASE_DAY 10
|
||||
|
||||
#include "ruby/version.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue