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

Commit 44761315 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

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

am: d838f583

Change-Id: I048ad5c5c0ec9718b43ef076bc89f25f911ede70
parents 343df5dd d838f583
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