You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flock doesn't work on AIX because it doesn't actually reside in libc, but instead in libbsd. flock is necessary for full functionality of jruby, though. Some obvious solutions:
Create an interface to libbsd, load it in, and call flock there instead.
Override flock in the AIX interface, and translate arguments and call either lockf or fcntl with the equivalent arguments instead (this should work in AIX because lockf, flock, and fcntl locks are integrated and are enforced across all the APIs), essentially reimplementing flock in terms of lockf/fcntl.
I feel the latter is probably the easiest and least disruptive option, but it will require the extra struct flock type and some extra interfaces. The fcntl path is probably the easiest to avoid having to deal with things like AIX's lockf and lockf64, as well as simply being more flexible in general.
The text was updated successfully, but these errors were encountered:
flock doesn't work on AIX because it doesn't actually reside in libc, but instead in libbsd. flock is necessary for full functionality of jruby, though. Some obvious solutions:
I feel the latter is probably the easiest and least disruptive option, but it will require the extra
struct flock
type and some extra interfaces. The fcntl path is probably the easiest to avoid having to deal with things like AIX's lockf and lockf64, as well as simply being more flexible in general.The text was updated successfully, but these errors were encountered: