[erlang-questions] Check for file used by any process

Samuel samuelrivas@REDACTED
Mon Jun 18 09:16:21 CEST 2012


Using lsof for that kind of thing is not safe, you can still end up in
situations with several process writing the same file.

The right solution depends on the problem (as usual :) ). If all the
access to those files are done by your erlang application maybe you
need to implement a server that ensures only one worker has write
access to the file. If there are external applications that can access
those files you will need to implement some kind of locking.

Regards
-- 
Samuel



More information about the erlang-questions mailing list