mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
(send_process): If fpathconf fails, use 250.
This commit is contained in:
parent
69fdec9e4d
commit
51632cc823
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user