Commit 7a931a55 authored by Jan Včelák's avatar Jan Včelák 🚀

remote: remove poll function wrapping a simple select

parent d0b07893
......@@ -113,20 +113,6 @@ void remote_unbind(int sock)
(void)close(sock);
}
int remote_poll(int sock, const sigset_t *sigmask)
{
/* Wait for events. */
fd_set rfds;
FD_ZERO(&rfds);
if (sock > -1) {
FD_SET(sock, &rfds);
} else {
sock = -1; /* Make sure n == r + 1 == 0 */
}
return pselect(sock + 1, &rfds, NULL, NULL, NULL, sigmask);
}
int remote_recv(int sock, uint8_t *buf, size_t *buflen)
{
int c = tcp_accept(sock);
......
......@@ -48,16 +48,6 @@ int remote_bind(const char *path);
*/
void remote_unbind(int sock);
/*!
* \brief Poll new events on RC socket.
*
* \param sock RC interface socket.
* \param sigmask Signal mask to use during blocking waiting.
*
* \return number of polled events or -1 on error.
*/
int remote_poll(int sock, const sigset_t *sigmask);
/*!
* \brief Start a RC connection with remote.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment