diff options
| author | Richard M. Stallman | 1994-04-21 19:54:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-21 19:54:28 +0000 |
| commit | 51632cc823e2c711701a08733b806b38619c3579 (patch) | |
| tree | 380db3e1ac77609075095ce6560678fd8cb4e2b7 /src/process.c | |
| parent | 69fdec9e4d007a6ef670984b04c1443089bff69f (diff) | |
| download | emacs-51632cc823e2c711701a08733b806b38619c3579.tar.gz emacs-51632cc823e2c711701a08733b806b38619c3579.zip | |
(send_process): If fpathconf fails, use 250.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index c77b537b664..f33339f5e22 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2300,6 +2300,8 @@ send_process (proc, buf, len) | |||
| 2300 | #if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON) | 2300 | #if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON) |
| 2301 | pty_max_bytes = fpathconf (XFASTINT (XPROCESS (proc)->outfd), | 2301 | pty_max_bytes = fpathconf (XFASTINT (XPROCESS (proc)->outfd), |
| 2302 | _PC_MAX_CANON); | 2302 | _PC_MAX_CANON); |
| 2303 | if (pty_max_bytes < 0) | ||
| 2304 | pty_max_bytes = 250; | ||
| 2303 | #else | 2305 | #else |
| 2304 | pty_max_bytes = 250; | 2306 | pty_max_bytes = 250; |
| 2305 | #endif | 2307 | #endif |