nss-pam-ldapd commit: r1407 - nss-pam-ldapd/pynslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1407 - nss-pam-ldapd/pynslcd
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1407 - nss-pam-ldapd/pynslcd
- Date: Thu, 24 Mar 2011 23:09:10 +0100 (CET)
Author: arthur
Date: Thu Mar 24 23:09:08 2011
New Revision: 1407
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1407
Log:
truncate pidfile to ensure remains of previous value is gone
Modified:
nss-pam-ldapd/pynslcd/mypidfile.py
Modified: nss-pam-ldapd/pynslcd/mypidfile.py
==============================================================================
--- nss-pam-ldapd/pynslcd/mypidfile.py Wed Mar 23 22:55:37 2011 (r1406)
+++ nss-pam-ldapd/pynslcd/mypidfile.py Thu Mar 24 23:09:08 2011 (r1407)
@@ -1,7 +1,7 @@
# mypidfile.py - functions for properly locking a PIDFile
#
-# Copyright (C) 2010 Arthur de Jong
+# Copyright (C) 2010, 2011 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -40,6 +40,7 @@
os.close(fd)
raise
pidfile.write('%d\n' % os.getpid())
+ pidfile.truncate()
pidfile.flush()
self.pidfile = pidfile
return self
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits
- nss-pam-ldapd commit: r1407 - nss-pam-ldapd/pynslcd,
Commits of the nss-pam-ldapd project