changeset 104265:a812c049e63c

(create_pty): Fix last change.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 14 Aug 2009 09:16:41 +0000
parents be5412b66c92
children c46034fa8dd7
files src/process.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Fri Aug 14 04:47:38 2009 +0000
+++ b/src/process.c	Fri Aug 14 09:16:41 2009 +0000
@@ -2355,7 +2355,12 @@
     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;
 }