Module: sip-router
Branch: master
Commit: c4f7356f2d8c057f59cb61948aa04664cecd35f7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c4f7356…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Sep 30 17:53:44 2014 +0200
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
---
sr_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sr_module.c b/sr_module.c
index b581635..e1c1797 100644
--- a/sr_module.c
+++ b/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");