changeset 7013:89f37ab7b781

(send_process): If fpathconf fails, use 250.
author Richard M. Stallman <rms@gnu.org>
date Thu, 21 Apr 1994 19:54:28 +0000
parents 1857dd7c6f04
children 33e93a89fbe4
files src/process.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Thu Apr 21 19:45:27 1994 +0000
+++ b/src/process.c	Thu Apr 21 19:54:28 1994 +0000
@@ -2300,6 +2300,8 @@
 #if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON)
 	    pty_max_bytes = fpathconf (XFASTINT (XPROCESS (proc)->outfd),
 				       _PC_MAX_CANON);
+	    if (pty_max_bytes < 0)
+	      pty_max_bytes = 250;
 #else
 	    pty_max_bytes = 250;
 #endif