File system locking - is there a way to create file system based locks without using a NIF in Erlang?

Hello gang!

Is there a way to create file system based locks without using a NIF in Erlang?

Cheers,
Louis

1 Like

I’m afraid not. All the modes are documented in file, but to be sure I looked at erts/emulator/nifs/common/prim_file_nif.c, modes that are not documented are dropped on the floor. Likewise, flock and friends are not exposed anywhere.

There’s probably a good reason for this not being supported, interested in an answer to that.

1 Like

Alas! Thank you for investigating for me

1 Like
3 Likes

Ah wonderful, I will subscribe to that PR and look forward to it’s being merged. :slight_smile:

1 Like