commio: Explicitly ignore return value from setsockopt(TCP_DEFER_ACCEPT).

This commit is contained in:
Jilles Tjoelker 2014-03-02 22:09:08 +01:00
parent f1709d5ac8
commit e053adc87e

View file

@ -772,7 +772,7 @@ rb_listen(rb_fde_t *F, int backlog, int defer_accept)
#ifdef TCP_DEFER_ACCEPT
if (defer_accept && !result)
{
setsockopt(F->fd, IPPROTO_TCP, TCP_DEFER_ACCEPT, &backlog, sizeof(int));
(void)setsockopt(F->fd, IPPROTO_TCP, TCP_DEFER_ACCEPT, &backlog, sizeof(int));
}
#endif
#ifdef SO_ACCEPTFILTER