提交 23054d76 编写于 作者: T tbell

6853336: (process) disable or remove clone-exec feature (6850720)

Summary: clone-exec feature (6850720) needs more work on 32-bit Linux
Reviewed-by: alanb, michaelm
Contributed-by: NMartin Buchholz <martinrb@google.com>
上级 c5dde42c
......@@ -49,6 +49,18 @@
#include <fcntl.h>
#include <limits.h>
/*
* (Hopefully temporarily) disable the clone-exec feature pending
* further investigation and bug-fixing.
* 32-bit (but not 64-bit) Linux fails on the program
* Runtime.getRuntime().exec("/bin/true").waitFor();
* with:
* # Internal Error (os_linux_x86.cpp:683), pid=19940, tid=2934639536
* # Error: pthread_getattr_np failed with errno = 3 (ESRCH)
* Linux kernel/pthread gurus are invited to figure this out.
*/
#define USE_CLONE 0
#ifndef USE_CLONE
#ifdef __linux__
#define USE_CLONE 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册