Skip to content

Commit

Permalink
Fix crash on macOS by GRPC_POLL_STRATEGY=epoll1 (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
splhack committed Jun 29, 2021
1 parent 963eff2 commit b7d06de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pycue/opencue/cuebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import atexit
import logging
import os
import platform
import yaml

import grpc
Expand Down Expand Up @@ -77,8 +78,9 @@
DEFAULT_MAX_MESSAGE_BYTES = 1024 ** 2 * 10
DEFAULT_GRPC_PORT = 8443

# Avoid spamming users with epoll fork warning messages
os.environ["GRPC_POLL_STRATEGY"] = "epoll1"
if platform.system() != 'Darwin':
# Avoid spamming users with epoll fork warning messages
os.environ["GRPC_POLL_STRATEGY"] = "epoll1"

class Cuebot(object):
"""Used to manage the connection to the Cuebot. Normally the connection
Expand Down

0 comments on commit b7d06de

Please sign in to comment.
  翻译: