diff options
-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; }; |