提交 24a39514 编写于 作者: S Scott Flynn

[QNX] socket accept gets interrupted by real-time signals. Loop over accept...

[QNX] socket accept gets interrupted by real-time signals.  Loop over accept function if failure cause was a signal interrupt
上级 c387783d
......@@ -1015,7 +1015,13 @@ transport_handshake (void)
static int
transport_accept (int socket_fd)
{
#ifdef __QNXNTO__
do {
conn_fd = accept (socket_fd, NULL, NULL);
} while( conn_fd == -1 && errno == EINTR );
#else
conn_fd = accept (socket_fd, NULL, NULL);
#endif
if (conn_fd == -1) {
fprintf (stderr, "debugger-agent: Unable to listen on %d\n", socket_fd);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册