Commit 51632cc8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(send_process): If fpathconf fails, use 250.

parent 69fdec9e
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment