mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-11 00:44:50 +01:00
Whitespace fixes
This commit is contained in:
@@ -100,20 +100,15 @@ static int close_wait_ms (int fd_, unsigned int max_ms_ = 2000)
|
|||||||
unsigned int step_ms = max_ms_ / 10;
|
unsigned int step_ms = max_ms_ / 10;
|
||||||
if (step_ms < 1)
|
if (step_ms < 1)
|
||||||
step_ms = 1;
|
step_ms = 1;
|
||||||
|
|
||||||
if (step_ms > 100)
|
if (step_ms > 100)
|
||||||
step_ms = 100;
|
step_ms = 100;
|
||||||
|
|
||||||
int rc = 0; // do not sleep on first attempt
|
int rc = 0; // do not sleep on first attempt
|
||||||
|
do {
|
||||||
do
|
if (rc == -1 && errno == EAGAIN) {
|
||||||
{
|
|
||||||
if (rc == -1 && errno == EAGAIN)
|
|
||||||
{
|
|
||||||
sleep_ms (step_ms);
|
sleep_ms (step_ms);
|
||||||
ms_so_far += step_ms;
|
ms_so_far += step_ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = close (fd_);
|
rc = close (fd_);
|
||||||
} while (ms_so_far < max_ms_ && rc == -1 && errno == EAGAIN);
|
} while (ms_so_far < max_ms_ && rc == -1 && errno == EAGAIN);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user