From 51632cc823e2c711701a08733b806b38619c3579 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 21 Apr 1994 19:54:28 +0000 Subject: [PATCH] (send_process): If fpathconf fails, use 250. --- src/process.c | 2 ++ 1 file changed, 2 insertions(+) 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) #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 -- 2.39.5