Module: sip-router
Branch: master
Commit: c4f7356f2d8c057f59cb61948aa04664cecd35f7
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c4f7356f2d8c057f59cb61948aa04664cecd35f7

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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");


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to