def on_kill(self):
        """
        This should be called when a thread was killed.
        Calling this method will set self.killer to the job_id of the current Thread.
        """
        ct = threading.current_thread()
        if not isinstance(ct, ShBaseThread):
            self.killer = 0
        else:
            self.killer = ct.job_id

        This should be called when a thread was killed.
        Calling this method will set self.killer to the job_id of the current Thread.
        
system/shthreads.py