Re: Flush `Trying to connect...' Message.
Matthias Andree <[email protected]>
| Newsgroups | gmane.mail.fetchmail.user |
|---|---|
| Message-ID | <[email protected]> |
Trying to send the attachment... ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Fetchmail-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fetchmail-users
connect.patch
(text/plain, 543 B)
diff --git a/socket.c b/socket.c
index bcf06491..4da5af2e 100644
--- a/socket.c
+++ b/socket.c
@@ -289,8 +270,11 @@ int SockOpen(const char *host, const char *service,
if (gnie)
snprintf(pb, sizeof(pb), GT_("unknown (%s)"), gai_strerror(gnie));
- if (outlevel >= O_VERBOSE)
+ if (outlevel >= O_VERBOSE) {
report_build(stdout, GT_("Trying to connect to %s/%s..."), buf, pb);
+ report_flush(stdout);
+ fflush(stdout);
+ }
i = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
if (i < 0) {
int e = errno;