search for: 2f15b80

Displaying 1 result from an estimated 1 matches for "2f15b80".

Did you mean: 2315b8e0
2020 Apr 04
0
[PATCH] nonblocking: remove usleep usage
...leep is deprecated under POSIX 2008 and is optionally unavailable with uClibc-ng. Signed-off-by: Rosen Penev <rosenp at gmail.com> --- examples/nonblocking.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/nonblocking.c b/examples/nonblocking.c index 8e38a94..2f15b80 100644 --- a/examples/nonblocking.c +++ b/examples/nonblocking.c @@ -70,8 +70,10 @@ int main() if (ret == SHOUTERR_BUSY) printf("Connection pending...\n"); + const struct timespec req = {0, 10 * 1000 * 1000}; + struct timespec rem; while (ret == SHOUTERR_BUSY) {...