Commit e01186a1 authored by Roland McGrath's avatar Roland McGrath
Browse files

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

so Fprocess_tty_name returns nil for pipes as its docstring says.
parent 796e4697
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment