diff loadtools/ltmain.c @ 27:ae6294b8a015

loadtool: exit jump0 implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 06:22:09 +0000
parents aca1948e9713
children dacf45e3d20f
line wrap: on
line diff
--- a/loadtools/ltmain.c	Sat May 04 05:38:58 2013 +0000
+++ b/loadtools/ltmain.c	Sat May 04 06:22:09 2013 +0000
@@ -13,6 +13,8 @@
 extern struct srecreader iramimage;
 extern char default_loadagent_image[];
 
+extern void (*default_exit)();
+
 char loadtool_command[512];
 
 main(argc, argv)
@@ -59,7 +61,7 @@
 			fflush(stdout);
 		}
 		if (!fgets(loadtool_command, sizeof loadtool_command, stdin))
-			exit(0);
+			default_exit();
 		loadtool_dispatch_cmd();
 	}
 }