From 9f2a721dffd56307564de39d836a3833d9037b44 Mon Sep 17 00:00:00 2001 From: Dan Lenski Date: Tue, 7 Jun 2016 09:00:48 -0500 Subject: [PATCH] avoid ProcessLookupError for already-terminated processes --- tetherback/tetherback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetherback/tetherback.py b/tetherback/tetherback.py index 1afaecc..9dcfc46 100755 --- a/tetherback/tetherback.py +++ b/tetherback/tetherback.py @@ -296,8 +296,8 @@ def uevent_dict(path): with open(fn+'.md5', 'w') as md5out: print('%s *%s' % (localmd5, fn), file=md5out) + child.wait() if args.transport==adbxp.tcp: s.close() if not really_unforward(port): raise RuntimeError('could not remove ADB-forward for TCP port %d' % port) - child.terminate()