equal
deleted
inserted
replaced
46 #include <errno.h> |
46 #include <errno.h> |
47 #include <dirent.h> |
47 #include <dirent.h> |
48 #include <unistd.h> |
48 #include <unistd.h> |
49 #include <fcntl.h> |
49 #include <fcntl.h> |
50 #include <limits.h> |
50 #include <limits.h> |
|
51 |
|
52 /* |
|
53 * (Hopefully temporarily) disable the clone-exec feature pending |
|
54 * further investigation and bug-fixing. |
|
55 * 32-bit (but not 64-bit) Linux fails on the program |
|
56 * Runtime.getRuntime().exec("/bin/true").waitFor(); |
|
57 * with: |
|
58 * # Internal Error (os_linux_x86.cpp:683), pid=19940, tid=2934639536 |
|
59 * # Error: pthread_getattr_np failed with errno = 3 (ESRCH) |
|
60 * Linux kernel/pthread gurus are invited to figure this out. |
|
61 */ |
|
62 #define USE_CLONE 0 |
51 |
63 |
52 #ifndef USE_CLONE |
64 #ifndef USE_CLONE |
53 #ifdef __linux__ |
65 #ifdef __linux__ |
54 #define USE_CLONE 1 |
66 #define USE_CLONE 1 |
55 #else |
67 #else |