Mercurial > hg > xemacs-beta
diff src/sysdep.c @ 367:a4f53d9b3154 r21-1-13
Import from CVS: tag r21-1-13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:01:07 +0200 |
parents | 7347b34c275b |
children | cc15677e0335 |
line wrap: on
line diff
--- a/src/sysdep.c Mon Aug 13 11:00:13 2007 +0200 +++ b/src/sysdep.c Mon Aug 13 11:01:07 2007 +0200 @@ -389,7 +389,7 @@ pHandle); } } - if (pHandle != NULL && !CloseHandle(pHandle)) + if (pHandle != NULL && !CloseHandle(pHandle)) { warn_when_safe (Qprocess, Qerror, "CloseHandle fails for process handle %p.", pHandle); @@ -778,6 +778,11 @@ #if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON) { int max_canon = fpathconf (fd, _PC_MAX_CANON); +#ifdef __hpux__ + /* HP-UX 10.20 fpathconf returns 768, but this results in + truncated input lines, while 255 works. */ + if (max_canon > 255) max_canon = 255; +#endif return (max_canon < 0 ? SAFE_MAX_CANON : max_canon > SAFE_MAX_CANON ? max_canon - MAX_CANON_SLACK : max_canon);