[SR-Dev] git:master: core: print 'udp' in process description for UDP listeners

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 22 18:31:05 CEST 2009


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Apr 22 18:28:31 2009 +0200

core: print 'udp' in process description for UDP listeners

- transport protocol is already printed for tcp, sctp

---

 main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 9befadd..4f0169b 100644
--- a/main.c
+++ b/main.c
@@ -1295,8 +1295,9 @@ int main_loop()
 		/* udp processes */
 		for(si=udp_listen; si; si=si->next){
 			for(i=0;i<children_no;i++){
-				snprintf(si_desc, MAX_PT_DESC, "receiver child=%d sock=%s:%s",
-					i, si->name.s, si->port_no_str.s);
+				snprintf(si_desc, MAX_PT_DESC, "udp receiver child=%d "
+						"sock=%s:%s",
+						i, si->name.s, si->port_no_str.s);
 				child_rank++;
 				pid = fork_process(child_rank, si_desc, 1);
 				if (pid<0){




More information about the sr-dev mailing list