environment/lib/python2.7/site-packages/psutil/__init__.py
def send_signal(self, sig):
        """Send a signal to process (see signal module constants).
        On Windows only SIGTERM is valid and is treated as an alias
        for kill().
        """
        # safety measure in case the current process has been killed in
        # meantime and the kernel reused its PID
        if not self.is_running():
            name = self._platform_impl._process_name
            raise NoSuchProcess(self.pid, name)
        if os.name == 'posix':
            try:
                os.kill(self.pid, sig)
            except OSError:
                err = sys.exc_info()[1]
                name = self._platform_impl._process_name
                if err.errno == errno.ESRCH:
                    raise NoSuchProcess(self.pid, name)
                if err.errno == errno.EPERM:
                    raise AccessDenied(self.pid, name)
                raise
        else:
            if sig == signal.SIGTERM:
                self._platform_impl.kill_process()
            else:
                raise ValueError("only SIGTERM is supported on Windows")
def send_signal(self, sig):
        """Send a signal to process (see signal module constants).
        On Windows only SIGTERM is valid and is treated as an alias
        for kill().
        """
        # safety measure in case the current process has been killed in
        # meantime and the kernel reused its PID
        if not self.is_running():
            name = self._platform_impl._process_name
            raise NoSuchProcess(self.pid, name)
        if os.name == 'posix':
            try:
                os.kill(self.pid, sig)
            except OSError:
                err = sys.exc_info()[1]
                name = self._platform_impl._process_name
                if err.errno == errno.ESRCH:
                    raise NoSuchProcess(self.pid, name)
                if err.errno == errno.EPERM:
                    raise AccessDenied(self.pid, name)
                raise
        else:
            if sig == signal.SIGTERM:
                self._platform_impl.kill_process()
            else:
                raise ValueError("only SIGTERM is supported on Windows")
def send_signal ( self , sig ) : # safety measure in case the current process has been killed in # meantime and the kernel reused its PID if not self . is_running ( ) : name = self . _platform_impl . _process_name raise NoSuchProcess ( self . pid , name ) if os . name == 'posix' : try : os . kill ( self . pid , sig ) except OSError : err = sys . exc_info ( ) [ 1 ] name = self . _platform_impl . _process_name if err . errno == errno . ESRCH : raise NoSuchProcess ( self . pid , name ) if err . errno == errno . EPERM : raise AccessDenied ( self . pid , name ) raise else : if sig == signal . SIGTERM : self . _platform_impl . kill_process ( ) else : raise ValueError ( "only SIGTERM is supported on Windows" )
Send a signal to process (see signal module constants).
        On Windows only SIGTERM is valid and is treated as an alias
        for kill().
Send a signal to process ( see signal module constants ) . On Windows only SIGTERM is valid and is treated as an alias for kill () .