aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Eggert2016-09-06 17:27:24 -0700
committerPaul Eggert2016-09-06 17:29:07 -0700
commit5d2ac7435de679559aae0ede1d8b6f1750c09e68 (patch)
tree8b4059b578a0a2d812b91dc242d507708c00fea2 /src/process.c
parent644f77b517180c5f75a9eaac4d76b12a1f334ce6 (diff)
downloademacs-5d2ac7435de679559aae0ede1d8b6f1750c09e68.tar.gz
emacs-5d2ac7435de679559aae0ede1d8b6f1750c09e68.zip
Use DEV_TTY more consistently
* src/conf_post.h (DEV_TTY): Move from here ... * src/keyboard.c, src/keyboard.h: ... to here, as it doesn’t need to be visible everywhere. Make it a constant. * src/keyboard.c (handle_interrupt, Fset_quit_char): * src/process.c (create_process): Prefer DEV_TTY to "/dev/tty".
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 344a886be19..989511967ce 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1917,7 +1917,7 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
1917 { 1917 {
1918 /* I wonder: would just ioctl (0, TIOCNOTTY, 0) work here? 1918 /* I wonder: would just ioctl (0, TIOCNOTTY, 0) work here?
1919 I can't test it since I don't have 4.3. */ 1919 I can't test it since I don't have 4.3. */
1920 int j = emacs_open ("/dev/tty", O_RDWR, 0); 1920 int j = emacs_open (DEV_TTY, O_RDWR, 0);
1921 if (j >= 0) 1921 if (j >= 0)
1922 { 1922 {
1923 ioctl (j, TIOCNOTTY, 0); 1923 ioctl (j, TIOCNOTTY, 0);