cgdb/cgdb — pull request #5 by tiwb (2012-12-25 03:03:12+00:00)
Title: Fixed some bugs.

Hi, I have been used cgdb for a while, when I moved to macosx, I found that cgdb will always not quit when using 'q' command in the gdb window after run target program. And I found the reason is that when gdb closes, both SIGCHLD is received and gdb_fd is readable. For some reason, the signal comes a little later, just after that check of tgdb->has_sigchld_recv in function tgdb_process. The result is tgdb_process will never called again.

I'm not sure this patch is the right way to fix this, It just works for me. Please fix this, in any way.