]> git.eshelyaron.com Git - emacs.git/commitdiff
(send_process): If fpathconf fails, use 250.
authorRichard M. Stallman <rms@gnu.org>
Thu, 21 Apr 1994 19:54:28 +0000 (19:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 21 Apr 1994 19:54:28 +0000 (19:54 +0000)
src/process.c

index c77b537b664e65d0be4351ce846f2a6ecae4824e..f33339f5e22115a42fec2e5d5e4dbb7186e32dbf 100644 (file)
@@ -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