1
1

ssh2_exec: skip error outputs for EAGAIN

Since the example uses non-blocking mode, it will just flood the output
with this "nonsense" error.
Этот коммит содержится в:
Daniel Stenberg 2011-12-08 10:54:04 +01:00
родитель d903b81c64
Коммит 09139ef065

Просмотреть файл

@ -264,7 +264,9 @@ int main(int argc, char *argv[])
fprintf(stderr, "\n");
}
else {
fprintf(stderr, "libssh2_channel_read returned %d\n", rc);
if( rc != LIBSSH2_ERROR_EAGAIN )
/* no need to output this for the EAGAIN case */
fprintf(stderr, "libssh2_channel_read returned %d\n", rc);
}
}
while( rc > 0 );