pyjfuzz/core/pjf_executor.py
def finish_read(self, timeout=2, stdin_content="", stdin=False):
        """
        Wait until we got output or until timeout is over
        """
        process = Thread(target=self.get_output, args=(stdin_content, stdin))
        process.start()
        if timeout > 0:
            process.join(timeout)
        else:
            process.join()
        if process.is_alive():
            self.close()
            self.return_code = -signal.SIGHUP
        else:
            self.return_code = self.process.returncode
def finish_read(self, timeout=2, stdin_content="", stdin=False):
        process = Thread(target=self.get_output, args=(stdin_content, stdin))
        process.start()
        if timeout > 0:
            process.join(timeout)
        else:
            process.join()
        if process.is_alive():
            self.close()
            self.return_code = -signal.SIGHUP
        else:
            self.return_code = self.process.returncode
def finish_read ( self , timeout = 2 , stdin_content = "" , stdin = False ) : process = Thread ( target = self . get_output , args = ( stdin_content , stdin ) ) process . start ( ) if timeout > 0 : process . join ( timeout ) else : process . join ( ) if process . is_alive ( ) : self . close ( ) self . return_code = - signal . SIGHUP else : self . return_code = self . process . returncode
Wait until we got output or until timeout is over
Wait until we got output or until timeout is over