> Locks are automatically freed if the program ends or crash. This is a > system thing. Read the man page of the lockf() function if you want the > details. Thank you I did not realise Lock was based on lockf().