Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos
Commits
14894f87
Commit
14894f87
authored
Apr 10, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use cygwin inotifyx for slapos.cookbook.
parent
a1bd7a7d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
slapos/recipe/librecipe/execute.py
slapos/recipe/librecipe/execute.py
+2
-1
slapos/recipe/librecipe/inotify.py
slapos/recipe/librecipe/inotify.py
+2
-1
slapos/recipe/lockfile.py
slapos/recipe/lockfile.py
+2
-1
No files found.
slapos/recipe/librecipe/execute.py
View file @
14894f87
...
@@ -43,6 +43,7 @@ def _wait_files_creation(file_list):
...
@@ -43,6 +43,7 @@ def _wait_files_creation(file_list):
directories
[
dirname
][
event
.
name
]
=
True
directories
[
dirname
][
event
.
name
]
=
True
finally
:
finally
:
if
isinstance
(
fd
,
int
):
os
.
close
(
fd
)
os
.
close
(
fd
)
def
execute
(
args
):
def
execute
(
args
):
...
...
slapos/recipe/librecipe/inotify.py
View file @
14894f87
...
@@ -48,4 +48,5 @@ def subfiles(directory):
...
@@ -48,4 +48,5 @@ def subfiles(directory):
subfiles
=
[
file_
.
name
for
file_
in
inotifyx
.
get_events
(
watchfd
)]
subfiles
=
[
file_
.
name
for
file_
in
inotifyx
.
get_events
(
watchfd
)]
finally
:
finally
:
if
isinstance
(
watchfd
,
int
):
os
.
close
(
watchfd
)
os
.
close
(
watchfd
)
slapos/recipe/lockfile.py
View file @
14894f87
...
@@ -57,6 +57,7 @@ class LockFile(object):
...
@@ -57,6 +57,7 @@ class LockFile(object):
except
IOError
:
# add_watch failed
except
IOError
:
# add_watch failed
pass
pass
finally
:
finally
:
if
isinstance
(
inotify_fd
,
int
):
os
.
close
(
inotify_fd
)
os
.
close
(
inotify_fd
)
self
.
__enter__
()
self
.
__enter__
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment