Created attachment 457754 [details] [diff] [review] handle EINTR Right now, xpcshell exits gracefully whenever it gets a NULL return value from fgets(). However, there are valid NULL return values possible from fgets(), like when it's interrupted by a system call. This patch makes xpcshell not exit in those cases, which makes attaching to xpcshell in GDB possible.
Created attachment 457758 [details] [diff] [review] handle EINTR v2 testing ftw
Attachment #457758 - Flags: review? → review?(timeless)
Comment on attachment 457758 [details] [diff] [review] handle EINTR v2 similar code exists in js/shell/js.cpp, please patch it too
Attachment #457758 - Flags: review?(timeless) → review+
I hit this every time I start developing on a mac again. What do we need to do to get this into the tree still?
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
You need to log in before you can comment on or make changes to this bug.