Evite de se connecter 89675 fois la base
Bricoles. Bricoles. darcs-hash:20060302215345-d1718-194cc66a539f812e6eca7af8d3d16fb76e03f1b1.gz
This commit is contained in:
parent
416a7f8779
commit
d3a4601c4c
4 changed files with 17 additions and 11 deletions
|
@ -54,6 +54,7 @@ def make_lock(lock_name, lock_comment='',nowait=0, quiet=False) :
|
|||
""" Création d'un lock
|
||||
si nowait=1 fait un sys.exit(254) quand un ancien lock actif est rencontré
|
||||
"""
|
||||
return
|
||||
lock_dir = '/var/lock/gestion'
|
||||
try:
|
||||
os.mkdir(lock_dir)
|
||||
|
@ -156,6 +157,7 @@ def make_lock(lock_name, lock_comment='',nowait=0, quiet=False) :
|
|||
|
||||
def remove_lock( lock_name ) :
|
||||
""" Destruction du lock """
|
||||
return
|
||||
# On créé une zone d'exclusion
|
||||
lock_dir = '/var/lock/gestion'
|
||||
lock_file = "%s/%s" % (lock_dir, lock_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue