Opened 7 years ago

Closed 7 years ago

#6 closed task (fixed)

remove run_once

Reported by: zhangjr Owned by: somebody
Priority: major Milestone:
Version: Keywords:
Cc: Blocked By:
Blocking: Parent ID:
Parent Tickets: Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0

Description

fcntl not working well

fh = 0

def run_once():

import fcntl
global fh
fh = open(os.path.realpath(file), 'r')
try:

fcntl.flock(fh, fcntl.LOCK_EX | fcntl.LOCK_NB)

except:

os._exit(1)

Subtickets

Child Tickets

Change History (1)

comment:1 Changed 7 years ago by zhangjr

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.