79173612

Date: 2024-11-09 20:14:56
Score: 2
Natty:
Report link

as @SteffenUllrich pointed out, before checking errno we must make sure that recvfrom has a bad return value.

int rv = recvfrom(..);
if (rv < 0 && errno == EWOULDBLOCK) { ... }

silly mistake, my bad.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @SteffenUllrich
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ugo_capeto