diff options
author | Eli Zaretskii <eliz@gnu.org> | 2009-08-14 09:17:11 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2009-08-14 09:17:11 +0000 |
commit | 8b9fc636617be134583554739009aba26e97cbd8 (patch) | |
tree | 3db45e03420ac882745c041f6ce1d512fa57396b /src/process.c | |
parent | 86a0ed4c65e8335e26cc1b5380cecd3c36710adc (diff) | |
download | emacs-8b9fc636617be134583554739009aba26e97cbd8.tar.gz |
(create_pty): Fix last change.
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 15ed971b3e2..56a8d189f99 100644 --- a/src/process.c +++ b/src/process.c @@ -2355,7 +2355,12 @@ create_pty (process) max_process_desc = inchannel; XPROCESS (process)->pid = -2; - XPROCESS (process)->tty_name = build_string (pty_name); +#ifdef HAVE_PTYS + if (pty_flag) + XPROCESS (process)->tty_name = build_string (pty_name); + else +#endif + XPROCESS (process)->tty_name = Qnil; } |