[lxc-devel] [lxd/master] shared/netutils: Fixes bug with getting container PID

tomponline on Github lxc-bot at linuxcontainers.org
Wed Jul 10 17:14:47 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 345 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190710/0ebba43b/attachment.bin>
-------------- next part --------------
From 27305b212e5edecc66a962b5f8a5f1981ef8d04a Mon Sep 17 00:00:00 2001
From: Thomas Parrott <tomp at tomp.uk>
Date: Wed, 10 Jul 2019 18:14:10 +0100
Subject: [PATCH] shared/netutils: Fixes bug with getting container PID

Signed-off-by: Thomas Parrott <tomp at tomp.uk>
---
 shared/netutils/unixfd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/netutils/unixfd.c b/shared/netutils/unixfd.c
index e2dcc58084..103c808f7f 100644
--- a/shared/netutils/unixfd.c
+++ b/shared/netutils/unixfd.c
@@ -107,7 +107,7 @@ static ssize_t lxc_abstract_unix_recv_fds_iov(int fd, int *recvfds,
 	return ret;
 }
 
-ssize_t lxc_abstract_unix_recv_fds(int fd, int *recvfds, int num_recvfds,
+static ssize_t lxc_abstract_unix_recv_fds(int fd, int *recvfds, int num_recvfds,
 				   void *data, size_t size)
 {
 	char buf[1] = {0};


More information about the lxc-devel mailing list