-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not entirely portable use of usleep() in tests #15711
Comments
Any reason not to use |
I would have though that the technique used for |
My proposed PR is now up. |
Because POSIX |
Ah, micro vs. milli got me! |
Actually I meant milli, but |
This fix impacts ws-data.c and ws-pingpong.c. sleep() replaced with system PROCESS_DELAY_() having the same resolution as usleep(). Fixes: curl#15711 Signed-off-by: Randall S. Becker <randall.becker@nexbridge.ca>
I did this
Compiled curl with OpenSSL and c99 on NonStop x86, and got a compile error on
usleep(100*1000)
. This function is only available in threaded code on NonStop. I need to usesleep(100)
instead if not threaded.Any objection if I put a pull request together for this?
I expected the following
Clean compile of the test suite.
curl/libcurl version
curl 8.11.0
operating system
NonStop L24.08
The text was updated successfully, but these errors were encountered: