* [PATCH] sendmsg: prefix sleep message with `#'
@ 2023-02-22 17:25 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-02-22 17:25 UTC (permalink / raw)
To: meta
It's an informative message that's harmless, so hopefully
the `#' prefix puts the users mind at ease.
(I saw it on an `lei import' against an IMAP source)
---
lib/PublicInbox/CmdIPC4.pm | 2 +-
lib/PublicInbox/Spawn.pm | 2 +-
lib/PublicInbox/Syscall.pm | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/PublicInbox/CmdIPC4.pm b/lib/PublicInbox/CmdIPC4.pm
index e368d032..99890244 100644
--- a/lib/PublicInbox/CmdIPC4.pm
+++ b/lib/PublicInbox/CmdIPC4.pm
@@ -23,7 +23,7 @@ no warnings 'once';
} while (!defined($s) &&
($!{ENOBUFS} || $!{ENOMEM} || $!{ETOOMANYREFS}) &&
(++$try < 50) &&
- warn "sleeping on sendmsg: $! (#$try)\n" &&
+ warn "# sleeping on sendmsg: $! (#$try)\n" &&
select(undef, undef, undef, 0.1) == 0);
$s;
};
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm
index 826ee508..dc11543a 100644
--- a/lib/PublicInbox/Spawn.pm
+++ b/lib/PublicInbox/Spawn.pm
@@ -171,7 +171,7 @@ static int sleep_wait(unsigned *tries, int err)
switch (err) {
case ENOBUFS: case ENOMEM: case ETOOMANYREFS:
if (++*tries < 50) {
- fprintf(stderr, "sleeping on sendmsg: %s (#%u)\n",
+ fprintf(stderr, "# sleeping on sendmsg: %s (#%u)\n",
strerror(err), *tries);
nanosleep(&req, NULL);
return 1;
diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm
index 530ee93b..841a2106 100644
--- a/lib/PublicInbox/Syscall.pm
+++ b/lib/PublicInbox/Syscall.pm
@@ -427,7 +427,7 @@ no warnings 'once';
} while ($sent < 0 &&
($!{ENOBUFS} || $!{ENOMEM} || $!{ETOOMANYREFS}) &&
(++$try < 50) &&
- warn "sleeping on sendmsg: $! (#$try)\n" &&
+ warn "# sleeping on sendmsg: $! (#$try)\n" &&
select(undef, undef, undef, 0.1) == 0);
$sent >= 0 ? $sent : undef;
};
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-22 17:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-22 17:25 [PATCH] sendmsg: prefix sleep message with `#' Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).