From 12b9d0a8d747bbf1bd0e3bf39e0845090bb4946e Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Tue, 26 Jul 2005 04:13:34 +0000 Subject: [PATCH] Don't call exit() directly here - set the exit value and jump to the main_exit: label to ensure the programmer is released correctly. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@483 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avrdude/main.c b/avrdude/main.c index c185fc7e..57f851d4 100644 --- a/avrdude/main.c +++ b/avrdude/main.c @@ -1208,7 +1208,8 @@ int main(int argc, char * argv []) if (rc != 0) { fprintf(stderr, "%s: error reading signature data, rc=%d\n", progname, rc); - exit(1); + exitrc = 1; + goto main_exit; } sig = avr_locate_mem(p, "signature");