Subject: bug#407: gpm server stop making emacs abort()

From: Stefan Monnier <[email-masked]>
Date: Fri, 12 Sep 2008 00:14:25 -0400

>> +      if (gpm < 0)
>> +	delete_gpm_wait_descriptor (gpm_fd);
>> if (hold_quit.kind != NO_EVENT)
>> kbd_buffer_store_event (&hold_quit);
>> if (nread)

> Works fine for me.

I've installed a similar patch.  It does not do (gpm-mouse-mode 0)
because I don't think it is safe at this point.  So there's probably
room for improvement, but it hopefully fixes the crashes.

        Stefan