Hi, I think this bug is due to gdb-mi creating a pty which it expects to remain open. When the process being debugged disconnects, emacs will receive an EIO-errno and (I believe mistakenly) send a SIGCHLD to itself, and stop listening to the pty. This patch fixes the problem for me. Troels