diff options
| author | Paul Eggert | 2012-11-16 07:29:22 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-11-16 07:29:22 -0800 |
| commit | 3d082a269ece18058ed82957f8a056822b39789e (patch) | |
| tree | 17d4964206b6dc2329b1e31ec708b7b370912db4 /src/process.c | |
| parent | 9533048d4a8e86dd6a8ffc8970afce28fda2632f (diff) | |
| download | emacs-3d082a269ece18058ed82957f8a056822b39789e.tar.gz emacs-3d082a269ece18058ed82957f8a056822b39789e.zip | |
Remove no-longer-used pty_max_bytes variable.
* configure.ac (fpathconf): Remove unnecessary check.
* admin/CPP-DEFINES (HAVE_FPATHCONF): Remove.
* src/process.c (pty_max_bytes): Remove; unused.
(send_process): Do not set it.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 16 |
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. */ | ||
| 344 | static 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. */ |
| 347 | static void | 344 | static void |
| 348 | pset_buffer (struct Lisp_Process *p, Lisp_Object val) | 345 | pset_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)) |