Browse code

core: exit with -1 if there is a mismatch in version of module and core

- return code to shell 0 is like succesful run, some scripts not being
able to say it was a failure to start

Daniel-Constantin Mierla authored on 30/09/2014 15:53:44
Showing 1 changed files
... ...
@@ -610,7 +610,7 @@ reload:
610 610
 	}
611 611
 	/* version control */
612 612
 	if (!version_control(handle, path)) {
613
-		exit(0);
613
+		exit(-1);
614 614
 	}
615 615
 	mod_if_ver = (unsigned *)dlsym(handle,
616 616
 									DLSYM_PREFIX "module_interface_ver");