[sr-dev] git:master:851fe7f7: core: use SHM_MEM_ERROR helper define after commit 4c57d02e

Henning Westerholt hw at kamailio.org
Fri Dec 28 12:21:32 CET 2018


Module: kamailio
Branch: master
Commit: 851fe7f7de78a41c9e0e1b67d437201bb49b7941
URL: https://github.com/kamailio/kamailio/commit/851fe7f7de78a41c9e0e1b67d437201bb49b7941

Author: Henning Westerholt <hw at kamailio.org>
Committer: Henning Westerholt <hw at kamailio.org>
Date: 2018-12-28T12:14:26+01:00

core: use SHM_MEM_ERROR helper define after commit 4c57d02e

---

Modified: src/main.c

---

Diff:  https://github.com/kamailio/kamailio/commit/851fe7f7de78a41c9e0e1b67d437201bb49b7941.diff
Patch: https://github.com/kamailio/kamailio/commit/851fe7f7de78a41c9e0e1b67d437201bb49b7941.patch

---

diff --git a/src/main.c b/src/main.c
index ad992a56be..ac58b760ba 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1271,7 +1271,7 @@ int main_loop(void)
 	if(_sr_instance_started == NULL) {
 		_sr_instance_started = shm_malloc(sizeof(int));
 		if(_sr_instance_started == NULL) {
-			LM_ERR("no shared memory\n");
+			SHM_MEM_ERROR;
 			goto error;
 		}
 		*_sr_instance_started = 0;




More information about the sr-dev mailing list