comparison 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
comparison
equal deleted inserted replaced
366:83d76f480a59 367:a4f53d9b3154
387 warn_when_safe (Qprocess, Qerror, 387 warn_when_safe (Qprocess, Qerror,
388 "GetExitCodeProcess fails for process handle %p.", 388 "GetExitCodeProcess fails for process handle %p.",
389 pHandle); 389 pHandle);
390 } 390 }
391 } 391 }
392 if (pHandle != NULL && !CloseHandle(pHandle)) 392 if (pHandle != NULL && !CloseHandle(pHandle))
393 { 393 {
394 warn_when_safe (Qprocess, Qerror, 394 warn_when_safe (Qprocess, Qerror,
395 "CloseHandle fails for process handle %p.", pHandle); 395 "CloseHandle fails for process handle %p.", pHandle);
396 } 396 }
397 #elif defined (EMACS_BLOCK_SIGNAL) && !defined (BROKEN_WAIT_FOR_SIGNAL) && defined (SIGCHLD) 397 #elif defined (EMACS_BLOCK_SIGNAL) && !defined (BROKEN_WAIT_FOR_SIGNAL) && defined (SIGCHLD)
776 #define MAX_CANON_SLACK 10 776 #define MAX_CANON_SLACK 10
777 #define SAFE_MAX_CANON 120 777 #define SAFE_MAX_CANON 120
778 #if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON) 778 #if defined (HAVE_FPATHCONF) && defined (_PC_MAX_CANON)
779 { 779 {
780 int max_canon = fpathconf (fd, _PC_MAX_CANON); 780 int max_canon = fpathconf (fd, _PC_MAX_CANON);
781 #ifdef __hpux__
782 /* HP-UX 10.20 fpathconf returns 768, but this results in
783 truncated input lines, while 255 works. */
784 if (max_canon > 255) max_canon = 255;
785 #endif
781 return (max_canon < 0 ? SAFE_MAX_CANON : 786 return (max_canon < 0 ? SAFE_MAX_CANON :
782 max_canon > SAFE_MAX_CANON ? max_canon - MAX_CANON_SLACK : 787 max_canon > SAFE_MAX_CANON ? max_canon - MAX_CANON_SLACK :
783 max_canon); 788 max_canon);
784 } 789 }
785 #elif defined (_POSIX_MAX_CANON) 790 #elif defined (_POSIX_MAX_CANON)