diff src/process.c @ 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 b7411e378b65
children 7032d07f5ad9
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