Subject: Re: bug#4970: 23.1; Emacs Gtk running nuts

From: Eli Zaretskii <[email-masked]>
Date: Fri, 20 Nov 2009 15:11:30 +0200

> Date: Fri, 20 Nov 2009 13:11:15 +0100
> From: Jan Djärv <[email-masked]>
> CC: [email-masked], [email-masked]
> 
> > And btw, are there any live frames when the test in term.c is made, in
> > the recipe to reproduce the original bug?  If not, maybe it needs to
> > check for live frames explicitly.
> 
> Yes there are. When read_socket_hook returns -2 and this is the last terminal, 
> a SIGHUP is sent to ourselves (why not just call shutdown_emacs and exit?) and 
> Fdelete_terminal is called.  So frames has not been removed yet.

Perhaps we should delete the frames instead of erroring out.  Would
that work?