comparison src/windows/native/java/lang/ProcessImpl_md.c @ 20:1d12b16c7df9

6631966: (process) Raise Windows pipe buffer size an extra 24 bytes (win) Reviewed-by: alanb, iris
author martin
date Mon, 10 Mar 2008 14:32:50 -0700
parents 37a05a11f281
children b5a587dd5af3
comparison
equal deleted inserted replaced
0:a70e8875b7c6 1:092bfbed2e7a
31 #include "jni_util.h" 31 #include "jni_util.h"
32 #include "io_util.h" 32 #include "io_util.h"
33 #include <windows.h> 33 #include <windows.h>
34 #include <io.h> 34 #include <io.h>
35 35
36 #define PIPE_SIZE 4096 36 /* We try to make sure that we can read and write 4095 bytes (the
37 * fixed limit on Linux) to the pipe on all operating systems without
38 * deadlock. Windows 2000 inexplicably appears to need an extra 24
39 * bytes of slop to avoid deadlock.
40 */
41 #define PIPE_SIZE (4096+24)
37 42
38 char * 43 char *
39 extractExecutablePath(JNIEnv *env, char *source) 44 extractExecutablePath(JNIEnv *env, char *source)
40 { 45 {
41 char *p, *r; 46 char *p, *r;