(create_process): Set PROCESS's tty_name to Qnil when !PTY_FLAG,

so Fprocess_tty_name returns nil for pipes as its docstring says.
This commit is contained in:
Roland McGrath 1995-04-11 22:46:18 +00:00
parent 796e46975d
commit e01186a181

View file

@ -1494,7 +1494,7 @@ create_process (process, new_argv, current_dir)
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