regressions in sleep (Unix.sleep 0) #7257
Original bug ID: 7257
In OCaml < 4.03, a
I use this mechanism to signal to DTrace the begin and finish of a test.
Another regression is that sleep used to use nanosleep, but now it uses select (on this machine here), because of an unusual usage of _POSIX_C_SOURCE -- as far as I understand from http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html if your code uses a specific POSIX version, you should "#define _POSIX_C_SOURCE ", whereas sleep.c does a "#ifdef _POSIX_C_SOURCE >= 199309L". FreeBSD provides "nanosleep" as part of libc.
My impression is that instead of _POSIX_C_SOURCE, a check in configure should be used which tests whether nanosleep is available on the system.
It would be great to get back support for
The text was updated successfully, but these errors were encountered: