Clean up tty device handling. Change name of controlling tty from nil to "/dev/tty".
authorKaroly Lorentey <lorentey@elte.hu>
Sun, 26 Mar 2006 16:05:17 +0000 (16:05 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Sun, 26 Mar 2006 16:05:17 +0000 (16:05 +0000)
commit59b3194ca9708b904c87d52bb9e074e32b7d9089
treedcc26d7abc0f9ea7871a43254a10cf0cbf777800
parent6a5af08f8d3bb831a78edf17e9c38813bbfbb6f8
Clean up tty device handling.  Change name of controlling tty from nil to "/dev/tty".

* src/term.c: Include errno.h.
  (Fcontrolling_tty_p): Compare name with "/dev/tty", not NULL.
  (Fresume_tty): Handle errors on reopening ttys.  Don't
  dissociate if terminal was explicitly opened on the controlling
  terminal.
  (init_tty): Initialize local pointers.  Always set name (use
  "/dev/tty" for controlling tty.)  Remove special case for name == NULL.

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