diff --git a/eventlet/api.py b/eventlet/api.py index 2ebdc45..2bbd09c 100644 --- a/eventlet/api.py +++ b/eventlet/api.py @@ -276,8 +276,8 @@ def spawn(function, *args, **kwds): g.switch(function, args, kwds, t.cancel) return g -def kill(g): - get_hub().schedule_call(0, g.throw) +def kill(g, *throw_args): + get_hub().schedule_call(0, g.throw, *throw_args) if getcurrent() is not get_hub().greenlet: sleep(0)