def kill()

in uberpoet/cpulogger.py [0:0]


    def kill(self):
        """
        Attempts to use sudo to kill the dangling CPU monitor.  Currently doesn't seem to work,
        you need to kill the top process outside of the python process.
        """
        self.stop()
        command = ['sudo', 'killall', 'top']
        logging.warning('Killing dangling CPU monitor with sudo. Command: `%s`', ' '.join(command))
        try:
            subprocess.check_call(command)
        except subprocess.CalledProcessError:
            logging.info("Error killing top command")