Commit 9e1d79d
issue: 4680622 Fix pktinfo test EINTR failures
The pktinfo.check_recvmsg_returns_expected_pktinfo test was failing
sporadically with errno=4 (EINTR) when SIGCHLD from the child process
exit interrupted the recvmsg() syscall before it could read the
buffered packet data.
Add standard EINTR retry loop to handle signal interruption during
recvmsg(), allowing the syscall to complete successfully even when
interrupted by signals.
Fixes sporadic CI failures:
Expected: (recvmsg(fd, &msg, 0)) > (0), actual: -1 vs 0
Failed to receive the msg
Signed-off-by: Tomer Cabouly <[email protected]>1 parent 1691622 commit 9e1d79d
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
532 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
533 | 537 | | |
534 | 538 | | |
535 | 539 | | |
| |||
0 commit comments