Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gnome-settings-daemon
Commits
28c6f318
Commit
28c6f318
authored
Jul 21, 2021
by
Benjamin Berg
Browse files
tests: Fix close of invalid file descriptor
The file descriptor may have been closed (and set to -1) already, catch this.
parent
eba846d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/output_checker.py
View file @
28c6f318
...
...
@@ -67,7 +67,8 @@ class OutputChecker(object):
continue
# We get a bad file descriptor error when the outside closes the FD
os
.
close
(
self
.
_pipe_fd_r
)
if
self
.
_pipe_fd_r
>=
0
:
os
.
close
(
self
.
_pipe_fd_r
)
self
.
_pipe_fd_r
=
-
1
self
.
_lines_sem
.
release
()
return
...
...
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