aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/process.c b/src/process.c
index 728abebe758..785282fba36 100644
--- a/src/process.c
+++ b/src/process.c
@@ -340,9 +340,6 @@ static struct sockaddr_and_len {
340#define DATAGRAM_CONN_P(proc) (0) 340#define DATAGRAM_CONN_P(proc) (0)
341#endif 341#endif
342 342
343/* Maximum number of bytes to send to a pty without an eof. */
344static int pty_max_bytes;
345
346/* These setters are used only in this file, so they can be private. */ 343/* These setters are used only in this file, so they can be private. */
347static void 344static void
348pset_buffer (struct Lisp_Process *p, Lisp_Object val) 345pset_buffer (struct Lisp_Process *p, Lisp_Object val)
@@ -5532,19 +5529,6 @@ send_process (Lisp_Object proc, const char *buf, ptrdiff_t len,
5532 buf = SSDATA (object); 5529 buf = SSDATA (object);
5533 } 5530 }
5534 5531
5535 if (pty_max_bytes == 0)
5536 {
5537#if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON)
5538 pty_max_bytes = fpathconf (p->outfd, _PC_MAX_CANON);
5539 if (pty_max_bytes < 0)
5540 pty_max_bytes = 250;
5541#else
5542 pty_max_bytes = 250;
5543#endif
5544 /* Deduct one, to leave space for the eof. */
5545 pty_max_bytes--;
5546 }
5547
5548 /* If there is already data in the write_queue, put the new data 5532 /* If there is already data in the write_queue, put the new data
5549 in the back of queue. Otherwise, ignore it. */ 5533 in the back of queue. Otherwise, ignore it. */
5550 if (!NILP (p->write_queue)) 5534 if (!NILP (p->write_queue))