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
Comment on attachment 457758 [details] [diff] [review] handle EINTR v2 similar code exists in js/shell/js.cpp, please patch it too
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?