Proposed patch (taking
http://www.freelists.org/post/dokuwiki/Changelog-rewrite,6 as a
reference):


--- /usr/lib/pm-utils/functions-1.2.6.1-3.orig  2010-02-14 17:28:15.000000000 
+0100
+++ /usr/lib/pm-utils/functions 2010-02-14 17:32:06.000000000 +0100
@@ -26,7 +26,10 @@
        # extra newline will be appended
        # make sure the directory where the lockfile should be exists
        mkdir -p "${LOCKDIR}"
-       local lock="${LOCKDIR}/${1##*/}"
+       local lockfile="${1##*/}"
+       local lock="${LOCKDIR}/${lockfile}"
+       # remove any stale locks (>= 1 day)
+       find "${LOCKDIR}" -name "${lockfile}" -type f -mtime +1 -exec rm -f {} 
\;
        # we use noclobber to make sure there are no race conditions
        (set -o noclobber; echo "${2}" > "${lock}") 2> /dev/null || return 1
        return 0

This managed to remove stale locks and suspend successfully.


Not sure I agree about the severity though ;)
Would this crucial fix perhaps manage to get in before the freeze?
Otherwise we'll probably have several hundred PCs sitting idle consuming
power since their users are barred from using suspend as intended by God... ;)

Thanks,

Andreas Mohr



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100214164731.ga25...@rhlx01.hs-esslingen.de

Reply via email to