in reply to Re^2: flock on Ubuntu 9.10
in thread SOLVED [flock on Ubuntu 9.10]

Part of daemonizing involves forking and exiting the current process. Proc::Deamon uses exit to exit the current process. This closes open file handles, releasing associated locks.