def terminate(self):
if self.__thread:<EOL><INDENT>cmd = ["<STR_LIT>"]<EOL>status, output, _ = cij.util.execute(cmd, shell=True, echo=True)<EOL>if status:<EOL><INDENT>cij.warn("<STR_LIT>")<EOL>return <NUM_LIT:1><EOL><DEDENT>tty = output.split()[<NUM_LIT:1>]<EOL>cmd = ["<STR_LIT>".format("<STR_LIT:U+0020>".join(self.__prefix), tty)]<EOL>status, _, _ = cij.util.execute(cmd, shell=True, echo=True)<EOL>if status:<EOL><INDENT>cij.warn("<STR_LIT>")<EOL>return <NUM_LIT:1><EOL><DEDENT>self.__thread.join()<EOL>self.__thread = None<EOL><DEDENT>return <NUM_LIT:0><EOL>
Terminate DMESG job