mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed commit miss at 41eb4fbf86
This commit is contained in:
parent
5a4742a0b4
commit
819dd464de
1 changed files with 26 additions and 24 deletions
|
@ -6599,17 +6599,18 @@ static struct constat *
|
||||||
constat_handle(HANDLE h)
|
constat_handle(HANDLE h)
|
||||||
{
|
{
|
||||||
st_data_t data;
|
st_data_t data;
|
||||||
struct constat *p;
|
struct constat *p = NULL;
|
||||||
|
thread_exclusive(conlist) {
|
||||||
if (!conlist) {
|
if (!conlist) {
|
||||||
if (console_emulator_p()) {
|
if (console_emulator_p()) {
|
||||||
conlist = conlist_disabled;
|
conlist = conlist_disabled;
|
||||||
return NULL;
|
continue;
|
||||||
}
|
}
|
||||||
conlist = st_init_numtable();
|
conlist = st_init_numtable();
|
||||||
install_vm_exit_handler();
|
install_vm_exit_handler();
|
||||||
}
|
}
|
||||||
else if (conlist == conlist_disabled) {
|
else if (conlist == conlist_disabled) {
|
||||||
return NULL;
|
continue;
|
||||||
}
|
}
|
||||||
if (st_lookup(conlist, (st_data_t)h, &data)) {
|
if (st_lookup(conlist, (st_data_t)h, &data)) {
|
||||||
p = (struct constat *)data;
|
p = (struct constat *)data;
|
||||||
|
@ -6626,6 +6627,7 @@ constat_handle(HANDLE h)
|
||||||
}
|
}
|
||||||
st_insert(conlist, (st_data_t)h, (st_data_t)p);
|
st_insert(conlist, (st_data_t)h, (st_data_t)p);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue