Skip to content
Snippets Groups Projects
Commit aea3105b authored by Sree Kuchibhotla's avatar Sree Kuchibhotla
Browse files

Merge branch 'master' into rpc_mgr

parents 612ca22f c293f721
No related branches found
No related tags found
No related merge requests found
...@@ -1711,6 +1711,12 @@ retry: ...@@ -1711,6 +1711,12 @@ retry:
"pollset_add_fd: Raced creating new polling island. pi_new: %p " "pollset_add_fd: Raced creating new polling island. pi_new: %p "
"(fd: %d, pollset: %p)", "(fd: %d, pollset: %p)",
(void *)pi_new, fd->fd, (void *)pollset); (void *)pi_new, fd->fd, (void *)pollset);
/* No need to lock 'pi_new' here since this is a new polling island and
* no one has a reference to it yet */
polling_island_remove_all_fds_locked(pi_new, true, &error);
/* Ref and unref so that the polling island gets deleted during unref */
PI_ADD_REF(pi_new, "dance_of_destruction"); PI_ADD_REF(pi_new, "dance_of_destruction");
PI_UNREF(exec_ctx, pi_new, "dance_of_destruction"); PI_UNREF(exec_ctx, pi_new, "dance_of_destruction");
goto retry; goto retry;
......
...@@ -39,6 +39,14 @@ cd $(dirname $0)/../.. ...@@ -39,6 +39,14 @@ cd $(dirname $0)/../..
PLATFORM=`uname -s` PLATFORM=`uname -s`
function is_msys() {
if [ "${PLATFORM/MSYS}" != "$PLATFORM" ]; then
echo true
else
exit 1
fi
}
function is_mingw() { function is_mingw() {
if [ "${PLATFORM/MINGW}" != "$PLATFORM" ]; then if [ "${PLATFORM/MINGW}" != "$PLATFORM" ]; then
echo true echo true
...@@ -108,6 +116,12 @@ VENV=${2:-$(venv $PYTHON)} ...@@ -108,6 +116,12 @@ VENV=${2:-$(venv $PYTHON)}
VENV_RELATIVE_PYTHON=${3:-$(venv_relative_python)} VENV_RELATIVE_PYTHON=${3:-$(venv_relative_python)}
TOOLCHAIN=${4:-$(toolchain)} TOOLCHAIN=${4:-$(toolchain)}
if [ $(is_msys) ]; then
echo "MSYS doesn't directly provide the right compiler(s);"
echo "switch to a MinGW shell."
exit 1
fi
ROOT=`pwd` ROOT=`pwd`
export CFLAGS="-I$ROOT/include -std=gnu99 -fno-wrapv $CFLAGS" export CFLAGS="-I$ROOT/include -std=gnu99 -fno-wrapv $CFLAGS"
export GRPC_PYTHON_BUILD_WITH_CYTHON=1 export GRPC_PYTHON_BUILD_WITH_CYTHON=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment