diff options
author | Ethan Yonker <ethanayonker@gmail.com> | 2013-01-09 16:35:51 +0000 |
---|---|---|
committer | Ethan Yonker <ethanayonker@gmail.com> | 2013-01-09 16:35:51 +0000 |
commit | f087dfb52cb9a3a33b85b922fdaadf0514b37e46 (patch) | |
tree | 701ce6e831bc291826b9b405c0448d9c41ca5a50 /minadbd | |
parent | 9028fb4d4ceed040c7d3ae9b1ceaa5a7472856ba (diff) | |
download | bootable_recovery-f087dfb52cb9a3a33b85b922fdaadf0514b37e46.zip bootable_recovery-f087dfb52cb9a3a33b85b922fdaadf0514b37e46.tar.gz bootable_recovery-f087dfb52cb9a3a33b85b922fdaadf0514b37e46.tar.bz2 |
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 <ethanayonker@gmail.com>
Diffstat (limited to 'minadbd')
-rw-r--r-- | minadbd/services.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/minadbd/services.c b/minadbd/services.c index aef37f7..6b5e3b9 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) { |