diff options
author | Eric Wong <e@80x24.org> | 2023-02-22 17:25:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-02-22 21:36:06 +0000 |
commit | cd73e06277ae9286e9a823b591ca5187ce35cdca (patch) | |
tree | f3d75aa5ac80cbca4939d224682e1d1e88ec0f6e /lib/PublicInbox | |
parent | 752af98576ae3e68a301e07f11f023f3bf941152 (diff) | |
download | public-inbox-cd73e06277ae9286e9a823b591ca5187ce35cdca.tar.gz |
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)
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/CmdIPC4.pm | 2 | ||||
-rw-r--r-- | lib/PublicInbox/Spawn.pm | 2 | ||||
-rw-r--r-- | 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; }; |