Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
98068a40
Commit
98068a40
authored
Dec 18, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a unix file descriptor leak.
parent
de952a80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/ZEO/zrpc/trigger.py
src/ZEO/zrpc/trigger.py
+6
-4
No files found.
src/ZEO/zrpc/trigger.py
View file @
98068a40
...
@@ -137,13 +137,15 @@ if os.name == 'posix':
...
@@ -137,13 +137,15 @@ if os.name == 'posix':
def
__init__
(
self
,
map
=
None
):
def
__init__
(
self
,
map
=
None
):
_triggerbase
.
__init__
(
self
)
_triggerbase
.
__init__
(
self
)
r
,
self
.
trigger
=
self
.
_fds
=
os
.
pipe
()
r
,
self
.
trigger
=
os
.
pipe
()
asyncore
.
file_dispatcher
.
__init__
(
self
,
r
,
map
)
asyncore
.
file_dispatcher
.
__init__
(
self
,
r
,
map
)
# file_dispatcher dups r, so we don't need it any more
os
.
close
(
r
)
def
_close
(
self
):
def
_close
(
self
):
for
fd
in
self
.
_fds
:
os
.
close
(
self
.
trigger
)
os
.
close
(
fd
)
asyncore
.
file_dispatcher
.
close
(
self
)
self
.
_fds
=
[]
def
_physical_pull
(
self
):
def
_physical_pull
(
self
):
os
.
write
(
self
.
trigger
,
'x'
)
os
.
write
(
self
.
trigger
,
'x'
)
...
...
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