From 5f7b0d34f54fee057814c3f146c871c474d53b75 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期六, 01 八月 2020 16:30:39 +0800
Subject: [PATCH] fix alloc_key

---
 test_socket/dgram_mod_req_rep.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/test_socket/dgram_mod_req_rep.c b/test_socket/dgram_mod_req_rep.c
index 9ed938b..bac0aa6 100644
--- a/test_socket/dgram_mod_req_rep.c
+++ b/test_socket/dgram_mod_req_rep.c
@@ -146,7 +146,9 @@
   port = atoi(argv[2]);
 
   if (strcmp("server", argv[1]) == 0) {
-    server(port);
+    int temp = shm_alloc_key();
+    printf("tmp=%d\n", temp);
+    server(temp);
   }
 
   if (strcmp("client", argv[1]) == 0)

--
Gitblit v1.8.0