From: | "Torsten Veller (tove)" <tove@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-libs/liblockfile/files: 1.08-stale_lock.patch |
Date: | Tue, 28 Apr 2009 07:32:16 |
Message-Id: | E1LyhnT-0002UE-KV@stork.gentoo.org |
1 | tove 09/04/28 07:32:07 |
2 | |
3 | Added: 1.08-stale_lock.patch |
4 | Log: |
5 | Version bump. Thanks Peter Alfredsen (#218619) |
6 | (Portage version: 2.2_rc31/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 net-libs/liblockfile/files/1.08-stale_lock.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/liblockfile/files/1.08-stale_lock.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/liblockfile/files/1.08-stale_lock.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: 1.08-stale_lock.patch |
15 | =================================================================== |
16 | http://bugs.debian.org/505851 |
17 | --- liblockfile-1.08.orig/lockfile.c |
18 | +++ liblockfile-1.08/lockfile.c |
19 | @@ -391,13 +391,10 @@ |
20 | * Without a pid in the lockfile, the lock |
21 | * is valid if it is newer than 5 mins. |
22 | */ |
23 | -#if 0 |
24 | + |
25 | if (now < st.st_mtime + 300) |
26 | return 0; |
27 | -#else |
28 | - if (now < st.st_mtime + 10) |
29 | - return 0; |
30 | -#endif |
31 | + |
32 | return -1; |
33 | } |