Skip to content

Commit

Permalink
Restart usleep() on EINTR
Browse files Browse the repository at this point in the history
  • Loading branch information
cataphract committed Dec 17, 2024
1 parent 0926c77 commit 669c898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appsec/src/extension/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int dd_conn_init( // NOLINT(readability-function-cognitive-complexity)
: "is not being listened on",
CONNECT_RETRY_PAUSE);
int ret = usleep(CONNECT_RETRY_PAUSE * 1000); // NOLINT
if (ret == 0) {
if (ret == 0 || errno == EINTR) {
goto try_again;
} else {
mlog_err(dd_log_warning,
Expand Down

0 comments on commit 669c898

Please sign in to comment.