changeset 11376:44f6ea27bac4

(create_process): Set PROCESS's tty_name to Qnil when !PTY_FLAG, so Fprocess_tty_name returns nil for pipes as its docstring says.
author Roland McGrath <roland@gnu.org>
date Tue, 11 Apr 1995 22:46:18 +0000
parents c7777cf7ef6c
children 2de0b88cc028
files src/process.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Tue Apr 11 20:33:52 1995 +0000
+++ b/src/process.c	Tue Apr 11 22:46:18 1995 +0000
@@ -1494,7 +1494,7 @@
   if (forkin != forkout && forkout >= 0)
     close (forkout);
 
-  XPROCESS (process)->tty_name = build_string (pty_name);
+  XPROCESS (process)->tty_name = pty_flag ? build_string (pty_name) : Qnil;
 
 #ifdef SIGCHLD
 #ifdef BSD4_1