Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c1c380a8
Commit
c1c380a8
authored
Dec 05, 2005
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1904: On Mac OS X avoid a spurious OSError when zopectl
exits.
parent
f1b1f06c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Zope2/Startup/zopectl.py
lib/python/Zope2/Startup/zopectl.py
+9
-1
No files found.
doc/CHANGES.txt
View file @
c1c380a8
...
...
@@ -104,3 +104,6 @@ Zope Changes
- Switched to the new improved test runner from Zope 3. Run
test.py with -h to find out more.
- Collector #1904: On Mac OS X avoid a spurious OSError when
zopectl exits.
lib/python/Zope2/Startup/zopectl.py
View file @
c1c380a8
...
...
@@ -304,5 +304,13 @@ if __name__ == "__main__":
# If it is not reset, 'os.wait[pid]' can non-deterministically fail.
# Thus, use a way such that "SIGCHLD" is definitely reset in children.
#signal.signal(signal.SIGCHLD, signal.SIG_IGN)
signal
.
signal
(
signal
.
SIGCHLD
,
_ignoreSIGCHLD
)
if
os
.
uname
()[
0
]
!=
'Darwin'
:
# On Mac OS X, setting up a signal handler causes waitpid to
# raise EINTR, which is not preventable via the Python signal
# handler API and can't be dealt with properly as we can't pass
# the SA_RESTART to the signal API. Since Mac OS X doesn't
# appear to clutter up the process table with zombies if
# SIGCHILD is unset, just don't bother registering a SIGCHILD
# signal handler at all.
signal
.
signal
(
signal
.
SIGCHLD
,
_ignoreSIGCHLD
)
main
()
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