Changeset c05b8c5 in mod_gnutls


Ignore:
Timestamp:
Jan 26, 2020, 3:36:01 PM (9 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
c4ba2b60
Parents:
422eade
Message:

TestService?: Preserve the child process' return code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/services.py

    r422eade rc05b8c5  
    3939        # child process
    4040        self.process = None
     41        # will contain the return code of the child process after
     42        # successful wait()
     43        self.returncode = None
    4144        # PID file, if any. The process must delete its PID file when
    4245        # exiting.
     
    6669                                        env=self.process_env,
    6770                                        close_fds=True)
     71        self.returncode = None
    6872
    6973    def stop(self):
     
    8488
    8589    def wait(self, timeout=None):
    86         """Wait for the process to actually stop after calling stop().
     90        """Wait for the process to terminate.
     91
     92        Sets returncode to the process' return code and returns it.
    8793
    8894        WARNING: Calling this method without a timeout or calling
     
    9399        if self.process:
    94100            self.process.wait(timeout=timeout)
     101            self.returncode = self.process.returncode
    95102            self.process = None
     103            return self.returncode
    96104
    97105    def wait_ready(self, timeout=None):
Note: See TracChangeset for help on using the changeset viewer.