changeset 18329:ddaafa596bf5

(Fprocess_send_eof): Prooperly conditionalize prev. change.
author Richard M. Stallman <rms@gnu.org>
date Thu, 19 Jun 1997 08:13:44 +0000
parents 0295bbed3c39
children 005facba9434
files src/process.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Thu Jun 19 03:03:08 1997 +0000
+++ b/src/process.c	Thu Jun 19 08:13:44 1997 +0000
@@ -3618,6 +3618,7 @@
     send_process (proc, "\004", 1, Qnil);
   else
     {
+#ifdef HAVE_SHUTDOWN
       /* If this is a network connection, or socketpair is used
 	 for communication with the subprocess, call shutdown to cause EOF.
 	 (In some old system, shutdown to socketpair doesn't work.
@@ -3628,6 +3629,9 @@
       /* In case of socketpair, outfd == infd, so don't close it.  */
       if (XINT (XPROCESS (proc)->outfd) != XINT (XPROCESS (proc)->infd))
 	close (XINT (XPROCESS (proc)->outfd));
+#else /* not HAVE_SHUTDOWN */
+      close (XINT (XPROCESS (proc)->outfd));
+#endif /* not HAVE_SHUTDOWN */
       XSETINT (XPROCESS (proc)->outfd, open (NULL_DEVICE, O_WRONLY));
     }
 #endif /* VMS */