Module: kamailio
Branch: master
Commit: d8643cd2caf38aa1efaeff73783920fab1d9bf0d
URL:
https://github.com/kamailio/kamailio/commit/d8643cd2caf38aa1efaeff73783920f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-09T14:00:23+01:00
core: main - terminate using ksr_exit() instead of return
---
Modified: src/main.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d8643cd2caf38aa1efaeff73783920f…
Patch:
https://github.com/kamailio/kamailio/commit/d8643cd2caf38aa1efaeff73783920f…
---
diff --git a/src/main.c b/src/main.c
index ee0d712957..6f8b354d22 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2903,7 +2903,7 @@ int main(int argc, char** argv)
strerror(errno), errno);
}
/* else terminate process */
- return ret;
+ ksr_exit(ret);
error:
/*kill everything*/
@@ -2913,7 +2913,7 @@ int main(int argc, char** argv)
fprintf(stderr, "error sending exit status: %s [%d]\n",
strerror(errno), errno);
}
- return -1;
+ ksr_exit(-1);
}