Closed Bug 579249 Opened 11 years ago Closed 10 years ago
xpcshell should handle EINTR from fgets (makes attaching in gdb possible)
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.
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
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
You need to log in before you can comment on or make changes to this bug.