Hi, Eric Gallager wrote: > I brought up gnulib's flock module, however, there was some concern > about how its documentation says, "[T]he replacement function does not > really work; it exhibits test failures." > https://www.gnu.org/software/gnulib/manual/html_node/flock.html > Do these test failures still occur?
Yes, according to my notes they still occur on AIX 7.1 (even on a jfs2 file system), Solaris 10, and Solaris 11.4. > What needs to be done to get the replacement function working properly? I don't know. It's a complicated topic [1][2][3][4]. Bruno [1] https://stackoverflow.com/questions/29611352/ [2] https://www.ict.griffith.edu.au/teaching/2501ICT/archive/guide/ipc/flock.html [3] https://www.quora.com/What-is-the-functional-difference-between-lockf-and-flock-in-Linux [4] https://apenwarr.ca/log/20101213