aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-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 */