[sr-dev] git:master: db_flatstore: use PROC_MIN to compute process uid

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 4 00:54:07 CET 2011


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Jan  4 00:39:58 2011 +0100

db_flatstore: use PROC_MIN to compute process uid

- PROC_TCP_MAIN is no longer the lowerest and can produce overlappings

---

 modules/db_flatstore/km_flatstore_mod.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/db_flatstore/km_flatstore_mod.c b/modules/db_flatstore/km_flatstore_mod.c
index a97e9ef..5f377a0 100644
--- a/modules/db_flatstore/km_flatstore_mod.c
+++ b/modules/db_flatstore/km_flatstore_mod.c
@@ -136,7 +136,7 @@ int km_child_init(int rank)
 	if (rank <= 0) {
 		km_flat_pid = - rank;
 	} else {
-		km_flat_pid = rank - PROC_TCP_MAIN;
+		km_flat_pid = rank - PROC_MIN;
 	}
 	return 0;
 }




More information about the sr-dev mailing list