Bug #11198 ยป 0001-ext-socket-ancdata.c-use-RB_GC_GUARD-instead-of-vola.patch
ext/socket/ancdata.c | ||
---|---|---|
struct msghdr mh;
|
||
struct iovec iov;
|
||
#if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
|
||
volatile VALUE controls_str = 0;
|
||
VALUE controls_str = 0;
|
||
VALUE *controls_ptr = NULL;
|
||
int family;
|
||
#endif
|
||
... | ... | |
rb_readwrite_sys_fail(RB_IO_WAIT_WRITABLE, "sendmsg(2) would block");
|
||
rb_sys_fail("sendmsg(2)");
|
||
}
|
||
#if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
|
||
RB_GC_GUARD(controls_str);
|
||
#endif
|
||
return SSIZET2NUM(ss);
|
||
}
|
||
-
|