Set tun to non-blocking

If we can't write to it we want failure, not blocking.
pull/935/head
Jason Rhinelander 5 years ago
parent 740460318a
commit 5d8f547d33

@ -763,6 +763,9 @@ namespace libuv
" has invalid fd: ", m_Device->tun_fd);
return false;
}
tuntap_set_nonblocking(m_Device, 1);
if(uv_poll_init(loop, &m_Handle, m_Device->tun_fd) == -1)
{
llarp::LogError("failed to start polling on ", m_Tun->ifname);

Loading…
Cancel
Save