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

Commit d838f583 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 5de25082 711a3730
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -98,10 +98,11 @@ class GdDeviceBase:
    def clean_up(self):
        self.grpc_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()
        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" %
                          (self.label, backing_process_return_code))
            return False