> root@ohno:~> su - mailman
> bash-2.03$ cd locks
> bash-2.03$ ls -al
> total 8
> drwxrwsr-x   2 mailman  mailman      512 Mar 26 16:01 .
> drwxrwsr-x  19 mailman  mailman      512 Mar 23 10:21 ..
> -rw-rw-r--   2 mailman  mailman       59 Mar 27  2001 qrunner.lock
> -rw-rw-r--   2 mailman  mailman       59 Mar 27  2001 
qrunner.lock.ohno.mrbill.net.23449
> bash-2.03$ date
> Mon Mar 26 16:03:57 CST 2001
> 
> qrunner.lock was created *tomorrow* ?  

Yes.  

    def __touch(self, filename=None):
        t = time.time() + self.__lifetime
        try:
            # TBD: We probably don't need to modify atime, but this is easier.
            os.utime(filename or self.__tmpfname, (t, t))
        except OSError, e:
            if e.errno <> errno.ENOENT: raise

It's a method for determining if a lock is likely to be stale,
and therefore breakable.


------------------------------------------------------
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

Reply via email to