def kill(self, sig):

        # we parse the signal at the client level to reduce the time we pass
        # in the server.
        signum =  parse_signal_value(sig)

        # make the request
        body = json.dumps({"signal": signum})
        headers = {"Content-Type": "application/json"}
        self.server.request("post", "/%s/signal" % self.pid, body=body,
                headers=headers)
        return True
Send a signal to the pid
dataset/ETHPy150Open benoitc/gaffer/gaffer/httpclient/process.py/Process.kill