[cpif] r29 - trunk
svn at argo.es
svn at argo.es
Mon May 7 17:51:22 CEST 2007
Author: jcea
Date: Mon May 7 17:51:20 2007
New Revision: 29
Log:
Mas limpieza para windows
Modified:
trunk/storage.py
Modified: trunk/storage.py
==============================================================================
--- trunk/storage.py (original)
+++ trunk/storage.py Mon May 7 17:51:20 2007
@@ -38,22 +38,23 @@
def storage_background(storage,path) :
storage_background.storage=storage
- import time
- while True :
- time.sleep(0.1)
+ storage_background.isAlive=lambda : True
def conn_constructor() :
from durus.connection import Connection
conn=Connection(storage_background.storage)
storage_background.storage=None # En esta modalidad, solo permitimos una conexion
return conn
+
+ storage_background(st,path)
+ return storage_background,conn_constructor
else :
path=os.path.join(path,"unix_socket")
- import threading
- storage_thread=threading.Thread(target=storage_background,args=(st,path))
- storage_thread.setDaemon(True)
- storage_thread.start()
+ import threading
+ storage_thread=threading.Thread(target=storage_background,args=(st,path))
+ storage_thread.setDaemon(True)
+ storage_thread.start()
return storage_thread,conn_constructor
More information about the cpif
mailing list