aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2005-03-27 19:22:10 +0000
committerKaroly Lorentey2005-03-27 19:22:10 +0000
commit8346e08b998a3d282f1770f02cbaa46f73b5a3a6 (patch)
tree1b0ccfd7febbfebad9ae94941bbec4b3b968f061 /src
parente4a92752ad38859db378dd0c3011c1994494009c (diff)
downloademacs-8346e08b998a3d282f1770f02cbaa46f73b5a3a6.tar.gz
emacs-8346e08b998a3d282f1770f02cbaa46f73b5a3a6.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c6
1 files changed, 6 insertions, 0 deletions
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)
2952{ 2952{
2953 struct frame *f = XFRAME (frame); 2953 struct frame *f = XFRAME (frame);
2954 2954
2955 /* If frame is already dead, nothing to do. This can happen if the
2956 display is disconnected after the frame has become official, but
2957 before x_create_frame removes the unwind protect. */
2958 if (!FRAME_LIVE_P (f))
2959 return Qnil;
2960
2955 /* If frame is ``official'', nothing to do. */ 2961 /* If frame is ``official'', nothing to do. */
2956 if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame)) 2962 if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame))
2957 { 2963 {