in reply to Re: Re: pesky lockfile stays locked
in thread pesky lockfile stays locked

A better thing to do would be, the next time it hangs, to do lsof lockfile (if you're on an OS that supports this), to see what process(es) still have the lock file open. Unless you have a very screwed-up OS, a process must habe an open file descriptor on a file to hold a lock.