comparison src/process.c @ 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 d4547e4b0aab
children 321726163a65
comparison
equal deleted inserted replaced
11375:c7777cf7ef6c 11376:44f6ea27bac4
1492 alarm (0); 1492 alarm (0);
1493 start_polling (); 1493 start_polling ();
1494 if (forkin != forkout && forkout >= 0) 1494 if (forkin != forkout && forkout >= 0)
1495 close (forkout); 1495 close (forkout);
1496 1496
1497 XPROCESS (process)->tty_name = build_string (pty_name); 1497 XPROCESS (process)->tty_name = pty_flag ? build_string (pty_name) : Qnil;
1498 1498
1499 #ifdef SIGCHLD 1499 #ifdef SIGCHLD
1500 #ifdef BSD4_1 1500 #ifdef BSD4_1
1501 sigrelse (SIGCHLD); 1501 sigrelse (SIGCHLD);
1502 #else /* not BSD4_1 */ 1502 #else /* not BSD4_1 */