Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adbcb5af authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Cert: Check that child returns 0 or -signal" am: d838f583 am: 44761315

Change-Id: Idc60c27a36e5f260295830d88c40c7da3d009b34
parents 2844a8a1 44761315
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -98,10 +98,11 @@ class GdDeviceBase:
    def clean_up(self):
    def clean_up(self):
        self.grpc_channel.close()
        self.grpc_channel.close()
        self.grpc_root_server_channel.close()
        self.grpc_root_server_channel.close()
        self.backing_process.send_signal(signal.SIGINT)
        stop_signal = signal.SIGINT
        self.backing_process.send_signal(stop_signal)
        backing_process_return_code = self.backing_process.wait()
        backing_process_return_code = self.backing_process.wait()
        self.backing_process_logs.close()
        self.backing_process_logs.close()
        if backing_process_return_code != 0:
        if backing_process_return_code not in [-stop_signal, 0]:
            logging.error("backing process %s stopped with code: %d" %
            logging.error("backing process %s stopped with code: %d" %
                          (self.label, backing_process_return_code))
                          (self.label, backing_process_return_code))
            return False
            return False