Fix the case when emacsclient is run on Emacs's controlling tty.
authorKaroly Lorentey <lorentey@elte.hu>
Mon, 2 Feb 2004 22:09:56 +0000 (22:09 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Mon, 2 Feb 2004 22:09:56 +0000 (22:09 +0000)
commit0c72d684c4b3e25bdb3a6a869d9f1b8bd21b80c7
treeff652240fcff0425e0398736c2b44b690bb8ebe7
parentd3a6748c5b378a86fc8408222c7dd26e47218af9
Fix the case when emacsclient is run on Emacs's controlling tty.

src/term.c (O_NOCTTY): Make sure it's defined.
(no_controlling_tty): New variable.
(init_initial_display, mark_ttys): Remove unused variable.
(term_init): Check that the given filename is a terminal device.
Dissociate the controlling terminal if we reopen it for other purposes.
(Reported by Dan Nicolaescu <dann at ics dot uci dot edu>.
(Fdelete_tty): Return nil.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-72
README.multi-tty
src/term.c