]> code.delx.au - gnu-emacs/commitdiff
(main): If using the current frame, send tty information to Emacs in
authorChong Yidong <cyd@stupidchicken.com>
Thu, 30 Oct 2008 15:54:38 +0000 (15:54 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 30 Oct 2008 15:54:38 +0000 (15:54 +0000)
case daemon mode needs to occupy this tty.

lib-src/emacsclient.c

index 870100ed4af5c6cd1b0f6cfa07a05935c493bd44..0bbc385d07f583c755fb853f3b17c13ca7cdf57f 100644 (file)
@@ -1437,7 +1437,10 @@ main (argc, argv)
       send_to_emacs (emacs_socket, " ");
     }
 
-  if (tty)
+  /* If using the current frame, send tty information to Emacs anyway.
+     In daemon mode, Emacs may need to occupy this tty if no other
+     frame is available.  */
+  if (tty || current_frame)
     {
       char *type = egetenv ("TERM");
       char *tty_name = NULL;