ソースを参照

core: socket info - let the kernet to set nl_pid value inside nl_bound_sock()

- GH #4094

(cherry picked from commit 1a6102098f78855283064f82a9075630b92412f3)
Daniel-Constantin Mierla 8 ヶ月 前
コミット
c1850aa5a1
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/core/socket_info.c

+ 1 - 1
src/core/socket_info.c

@@ -1343,7 +1343,7 @@ static int nl_bound_sock(void)
 	bzero(&la, sizeof(la));
 	bzero(&la, sizeof(la));
 	la.nl_family = AF_NETLINK;
 	la.nl_family = AF_NETLINK;
 	la.nl_pad = 0;
 	la.nl_pad = 0;
-	la.nl_pid = getpid();
+	la.nl_pid = 0;
 	la.nl_groups = 0;
 	la.nl_groups = 0;
 	if(bind(sock, (struct sockaddr *)&la, sizeof(la)) < 0) {
 	if(bind(sock, (struct sockaddr *)&la, sizeof(la)) < 0) {
 		LM_ERR("could not bind NETLINK sock to sockaddr_nl\n");
 		LM_ERR("could not bind NETLINK sock to sockaddr_nl\n");