mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
d8c8b79d24
commit
f6e2c41db3
1 changed files with 6 additions and 2 deletions
|
@ -253,7 +253,9 @@ static VALUE
|
||||||
passwd_ensure(VALUE _)
|
passwd_ensure(VALUE _)
|
||||||
{
|
{
|
||||||
endpwent();
|
endpwent();
|
||||||
passwd_blocking = 0;
|
if (RUBY_ATOMIC_EXCHANGE(passwd_blocking, 0) != 1) {
|
||||||
|
rb_raise(rb_eRuntimeError, "unexpected passwd_blocking");
|
||||||
|
}
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -495,7 +497,9 @@ static VALUE
|
||||||
group_ensure(VALUE _)
|
group_ensure(VALUE _)
|
||||||
{
|
{
|
||||||
endgrent();
|
endgrent();
|
||||||
group_blocking = 0;
|
if (RUBY_ATOMIC_EXCHANGE(group_blocking, 0) != 1) {
|
||||||
|
rb_raise(rb_eRuntimeError, "unexpected group_blocking");
|
||||||
|
}
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue