[Pm-utils] [patch commit] [000] POSIXification of pm-utils
Till Maas
opensource at till.name
Tue Jan 29 02:10:38 PST 2008
On Tue January 29 2008, Victor Lowther wrote:
> suspend_clock() {
> if try_lock "${NTPD_LOCK}"; then
> - trap release_ntpd_lock 0
> + trap 'release_lock ${NTPD_LOCK}"' 0 <-- bad quoting, which is
> probably why the lockfile is not getting removed.
> stopservice ntpd
> fi
Fixed in attached patch.
> +STATEDIR="/var/run/pm-utils/state"
> +SERVICEDIR="/var/run/pm-utils/service"
> +MODULEDIR="/var/run/pm-utils/modules"
Now it is only STORAGEDIR. Also this patch fixes the spin_lock issue that
Michael found.
Regards,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pm-utils-use-noclobber-lockfile.patch
Type: text/x-diff
Size: 3917 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080129/accdc544/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080129/accdc544/attachment.pgp
More information about the Pm-utils
mailing list