Skip to content
Permalink
Browse files

Merge pull request #850 from kachick/guard-process-kill-segfault

Guard Process.kill from segfault when PIDs contain nil
  • Loading branch information
alex committed Oct 18, 2015
2 parents c6aa891 + 98aeaf6 commit 155a852c29ff735823e3c7f488f33df392b31660
Showing with 2 additions and 2 deletions.
  1. +2 −2 topaz/modules/process.py
@@ -113,14 +113,14 @@ def method_kill(self, space, w_signal, args_w):

if sig < 0:
for w_arg in args_w:
pid = space.int_w(w_arg)
pid = Coerce.int(space, w_arg)
try:
killpg(pid, -sig)
except OSError as e:
raise error_for_oserror(space, e)
else:
for w_arg in args_w:
pid = space.int_w(w_arg)
pid = Coerce.int(space, w_arg)
try:
kill(pid, sig)
except OSError as e:

0 comments on commit 155a852

Please sign in to comment.
You can’t perform that action at this time.