Pārlūkot izejas kodu

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 11 gadi atpakaļ
vecāks
revīzija
c4f7356f2d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      sr_module.c

+ 1 - 1
sr_module.c

@@ -610,7 +610,7 @@ reload:
 	}
 	/* version control */
 	if (!version_control(handle, path)) {
-		exit(0);
+		exit(-1);
 	}
 	mod_if_ver = (unsigned *)dlsym(handle,
 									DLSYM_PREFIX "module_interface_ver");