From f087dfb52cb9a3a33b85b922fdaadf0514b37e46 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 9 Jan 2013 16:35:51 +0000 Subject: [PATCH] exit instead of return if sideload file creation fails A return here leaves adb sideload in a permanent loop. An exit is more appropriate for this error. Change-Id: I80fb8abae4f6378833aa75f9eaf7ec1acd44b274 Signed-off-by: Ethan Yonker --- minadbd/services.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minadbd/services.c b/minadbd/services.c index aef37f7e..6b5e3b9a 100644 --- a/minadbd/services.c +++ b/minadbd/services.c @@ -55,7 +55,7 @@ static void sideload_service(int s, void *cookie) if(fd < 0) { fprintf(stderr, "failed to create %s\n", ADB_SIDELOAD_FILENAME); adb_close(s); - return; + exit(1); } while(count > 0) {