Commit 14894f87 authored by Jondy Zhao's avatar Jondy Zhao

Use cygwin inotifyx for slapos.cookbook.

parent a1bd7a7d
......@@ -43,6 +43,7 @@ def _wait_files_creation(file_list):
directories[dirname][event.name] = True
finally:
if isinstance(fd, int):
os.close(fd)
def execute(args):
......
......@@ -48,4 +48,5 @@ def subfiles(directory):
subfiles = [file_.name for file_ in inotifyx.get_events(watchfd)]
finally:
if isinstance(watchfd, int):
os.close(watchfd)
......@@ -57,6 +57,7 @@ class LockFile(object):
except IOError: # add_watch failed
pass
finally:
if isinstance(inotify_fd, int):
os.close(inotify_fd)
self.__enter__()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment