[llm][SGLang support] Remove signal handler override from SGLang engine
Author: eicherseijiCreated Mar 19, 2026Updated Sep 29, 2026
Labelsgood-first-issueservellmhelp-wanted
Now that https://github.com/sgl-project/sglang/pull/18752 is upstreamed, we should be able to remove this signal handler from ray/llm/examples/sglang/modules/sglang_engine.py:
# TODO(issue-61108): remove this once sglang#18752 is merged and included
# in the minimum supported SGLang version for this example.
original_signal_func = signal.signal
def noop_signal_handler(sig, action):
# Returns default handler to satisfy signal.signal() return signature
return signal.SIG_DFL
try:
# Override signal.signal with our no-op function
signal.signal = noop_signal_handler
self.engine = sglang.Engine(**self.engine_kwargs)
finally:
signal.signal = original_signal_funcSource: ray-project/ray