aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-19 08:13:44 +0000
committerRichard M. Stallman1997-06-19 08:13:44 +0000
commit93853f3d0c280e3465dfd1fe52019e4eeb8b0f72 (patch)
treebe2383ed95d2ac91b7383499c13b3d860fcad39d
parent02f55c4bd48518c2cafc8473caf34b1abb5c673b (diff)
downloademacs-93853f3d0c280e3465dfd1fe52019e4eeb8b0f72.tar.gz
emacs-93853f3d0c280e3465dfd1fe52019e4eeb8b0f72.zip
(Fprocess_send_eof): Prooperly conditionalize prev. change.
-rw-r--r--src/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index bed3e381d5e..357974588d9 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3618,6 +3618,7 @@ text to PROCESS after you call this function.")
3618 send_process (proc, "\004", 1, Qnil); 3618 send_process (proc, "\004", 1, Qnil);
3619 else 3619 else
3620 { 3620 {
3621#ifdef HAVE_SHUTDOWN
3621 /* If this is a network connection, or socketpair is used 3622 /* If this is a network connection, or socketpair is used
3622 for communication with the subprocess, call shutdown to cause EOF. 3623 for communication with the subprocess, call shutdown to cause EOF.
3623 (In some old system, shutdown to socketpair doesn't work. 3624 (In some old system, shutdown to socketpair doesn't work.
@@ -3628,6 +3629,9 @@ text to PROCESS after you call this function.")
3628 /* In case of socketpair, outfd == infd, so don't close it. */ 3629 /* In case of socketpair, outfd == infd, so don't close it. */
3629 if (XINT (XPROCESS (proc)->outfd) != XINT (XPROCESS (proc)->infd)) 3630 if (XINT (XPROCESS (proc)->outfd) != XINT (XPROCESS (proc)->infd))
3630 close (XINT (XPROCESS (proc)->outfd)); 3631 close (XINT (XPROCESS (proc)->outfd));
3632#else /* not HAVE_SHUTDOWN */
3633 close (XINT (XPROCESS (proc)->outfd));
3634#endif /* not HAVE_SHUTDOWN */
3631 XSETINT (XPROCESS (proc)->outfd, open (NULL_DEVICE, O_WRONLY)); 3635 XSETINT (XPROCESS (proc)->outfd, open (NULL_DEVICE, O_WRONLY));
3632 } 3636 }
3633#endif /* VMS */ 3637#endif /* VMS */