Skip to content
Snippets Groups Projects
Commit 309c8b59 authored by Lofar test build account's avatar Lofar test build account
Browse files

Task #5385: [mol] Fixed log output from SSH connections by not repeating calls to select()

parent 5b5295b8
No related branches found
No related tags found
No related merge requests found
......@@ -506,7 +506,12 @@ namespace LOFAR
Cancellation::enable();
do {
/*
* Do NOT repeat select() if it returns 0! For some reason,
* input will not arrive anymore if that happens once and
* we don't communicate to libssh2 in the mean time.
*/
struct timeval timeout;
timeout.tv_sec = 1;
......@@ -514,7 +519,6 @@ namespace LOFAR
// select() is a cancellation point
rc = ::select(sock.fd + 1, readfd, writefd, NULL, &timeout);
} while (rc == 0);
Cancellation::disable();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment