From: Karoly Lorentey Date: Sun, 27 Mar 2005 19:22:10 +0000 (+0000) Subject: Prevent core dump when connection is lost during frame creation. X-Git-Tag: emacs-pretest-23.0.90~11236^2~141^2~279 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8346e08b998a3d282f1770f02cbaa46f73b5a3a6;p=emacs.git Prevent core dump when connection is lost during frame creation. * src/xfns.c (unwind_create_frame): Don't do anything if the frame is already dead. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-321 --- diff --git a/src/xfns.c b/src/xfns.c index 66f0a2e94a4..6a9ec8a6b47 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2952,6 +2952,12 @@ unwind_create_frame (frame) { struct frame *f = XFRAME (frame); + /* If frame is already dead, nothing to do. This can happen if the + display is disconnected after the frame has become official, but + before x_create_frame removes the unwind protect. */ + if (!FRAME_LIVE_P (f)) + return Qnil; + /* If frame is ``official'', nothing to do. */ if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame)) {