Mercurial > emacs
changeset 15092:5372670fbe59
(Fopen_network_stream): Set process infd to inch.
(create_process, read_process_output, Fsignal_process) [WINDOWSNT]:
Remove conditional NT code.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 26 Apr 1996 19:55:27 +0000 |
parents | e05dd165b889 |
children | a18e7d41286a |
files | src/process.c |
diffstat | 1 files changed, 3 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Fri Apr 26 19:54:49 1996 +0000 +++ b/src/process.c Fri Apr 26 19:55:27 1996 +0000 @@ -1255,22 +1255,12 @@ } #else /* not SKTPAIR */ { -#ifdef WINDOWSNT - pipe_with_inherited_out (sv); - inchannel = sv[0]; - forkout = sv[1]; - - pipe_with_inherited_in (sv); - forkin = sv[0]; - outchannel = sv[1]; -#else /* not WINDOWSNT */ pipe (sv); inchannel = sv[0]; forkout = sv[1]; pipe (sv); outchannel = sv[1]; forkin = sv[0]; -#endif /* not WINDOWSNT */ } #endif /* not SKTPAIR */ @@ -1800,7 +1790,7 @@ XPROCESS (proc)->filter = Qnil; XPROCESS (proc)->command = Qnil; XPROCESS (proc)->pid = Qnil; - XSETINT (XPROCESS (proc)->infd, s); + XSETINT (XPROCESS (proc)->infd, inch); XSETINT (XPROCESS (proc)->outfd, outch); XPROCESS (proc)->status = Qrun; FD_SET (inch, &input_wait_mask); @@ -2463,20 +2453,12 @@ #else /* not VMS */ if (proc_buffered_char[channel] < 0) -#ifdef WINDOWSNT - nchars = read_child_output (channel, chars, sizeof (chars)); -#else - nchars = read (channel, chars, sizeof chars); -#endif + nchars = read (channel, chars, sizeof (chars)); else { chars[0] = proc_buffered_char[channel]; proc_buffered_char[channel] = -1; -#ifdef WINDOWSNT - nchars = read_child_output (channel, chars + 1, sizeof (chars) - 1); -#else - nchars = read (channel, chars + 1, sizeof chars - 1); -#endif + nchars = read (channel, chars + 1, sizeof (chars) - 1); if (nchars < 0) nchars = 1; else @@ -3228,12 +3210,7 @@ #undef handle_signal -#ifdef WINDOWSNT - /* Only works for kill-type signals */ - return make_number (win32_kill_process (XINT (pid), XINT (sigcode))); -#else return make_number (kill (XINT (pid), XINT (sigcode))); -#endif } DEFUN ("process-send-eof", Fprocess_send_eof, Sprocess_send_eof, 0, 1, 0,