Re: Re: skinning a cat
| From: | Jochem Maas | Date: | Mon, 01 Sep 2008 12:41:14 +0000 |
| Subject: | Re: Re: skinning a cat | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279214@lists.php.net to get a copy of this message | ||
Per Jessen schreef:
Jochem Maas wrote:directory creation is garanteed to be atomic, even across NFS, or so Rob said. additionally his idea of being able to dump lock-process related data in said directory is quite nifty.I haven't thought it through, but I don't think it would change anything.lockfile=/var/lock/<xxxx>/file # clear out a lock older than 60mins find $lockfile -cmin +60 | xargs rm test ! -f $lockfile && ( touch $lockfile <run some php> rm -f $lockfile )wouldn't creating a dir be better here? (with regard to atomicity)
/Per Jessen, Zürich