Changeset 2885 for pykota/trunk/bin/cupspykota
- Timestamp:
- 05/12/06 11:33:45 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r2884 r2885 123 123 self.lockfile.seek(0, 0) 124 124 try : 125 oldpid = int(self.lockfile.read ().strip())125 oldpid = int(self.lockfile.readlines()[-1].strip()) 126 126 except : 127 127 stillrunning = False … … 132 132 stillrunning = False 133 133 if not stillrunning : 134 self.lockfile.truncate(0) 134 135 self.lockfile.seek(0, 0) 135 self.lockfile.write("% i" % self.pid)136 self.lockfile.write("%s\n" % self.pid) 136 137 self.lockfile.flush() 137 138 break