Skip to content
Permalink
Browse files

os.kill isn't RPython on Windows

  • Loading branch information
timfel committed Jul 19, 2013
1 parent 78a68d5 commit d81a1f2485ef0090484610406ce45703f31c8ab0
Showing with 5 additions and 1 deletion.
  1. +5 −1 topaz/modules/process.py
@@ -18,6 +18,9 @@ def geteuid():
def fork():
raise NotImplementedError("fork on windows")

def kill(pid, sig):
raise NotImplementedError("kill on windows")

def killpg(pid, sigs):
raise OSError(errno.EINVAL, "group kill not available on windows")

@@ -26,6 +29,7 @@ def WEXITSTATUS(status):
else:
geteuid = os.geteuid
fork = os.fork
kill = os.kill
killpg = os.killpg
WEXITSTATUS = os.WEXITSTATUS

@@ -106,7 +110,7 @@ def method_kill(self, space, w_signal, args_w):
for w_arg in args_w:
pid = space.int_w(w_arg)
try:
os.kill(pid, sig)
kill(pid, sig)
except OSError as e:
raise error_for_oserror(space, e)
return space.newint(len(args_w))

0 comments on commit d81a1f2

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