invalidate the file descriptor on close
This commit is contained in:
parent
9241f35df3
commit
dd138de8e1
@ -88,7 +88,9 @@ static void rb_mysql_client_free(void * ptr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static VALUE nogvl_close(void * ptr) {
|
static VALUE nogvl_close(void * ptr) {
|
||||||
mysql_close((MYSQL *)ptr);
|
MYSQL *client = (MYSQL *)ptr;
|
||||||
|
mysql_close(client);
|
||||||
|
client->net.fd = -1;
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user