]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Use stdout rather than stdin to obtain the terminal (bug#427).
authorChong Yidong <cyd@stupidchicken.com>
Fri, 19 Sep 2008 15:50:24 +0000 (15:50 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 19 Sep 2008 15:50:24 +0000 (15:50 +0000)
lib-src/emacsclient.c

index 8f0231db540f586b3d0c590de4124d15f96e8b0a..87cc9de6f516a6ac04b6824fde5cb6766c0dafe8 100644 (file)
@@ -1429,7 +1429,7 @@ main (argc, argv)
       char *type = egetenv ("TERM");
       char *tty_name = NULL;
 #ifndef WINDOWSNT
-      tty_name = ttyname (fileno (stdin));
+      tty_name = ttyname (fileno (stdout));
 #endif
 
       if (! tty_name)