소스 검색

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

(cherry picked from commit c4f7356f2d8c057f59cb61948aa04664cecd35f7)
(cherry picked from commit 9c46eb45dcee9d27ba86fc7ade275b8b696936f6)
Daniel-Constantin Mierla 11 년 전
부모
커밋
1db6fdac10
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      sr_module.c

+ 1 - 1
sr_module.c

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