X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-distro%2Frecipes-security%2Fgssproxy%2Ffiles%2FSimplify-setting-NONBLOCK-on-socket.patch;fp=meta-starlingx%2Fmeta-stx-distro%2Frecipes-security%2Fgssproxy%2Ffiles%2FSimplify-setting-NONBLOCK-on-socket.patch;h=0000000000000000000000000000000000000000;hb=6fc6934434f70595536a387ece31bc30141cafb5;hp=1762d699ad82125db3164b446b4cc2d5c59ac47f;hpb=eb1e26510491ba49de693ab3b0498edcb06be6c5;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-distro/recipes-security/gssproxy/files/Simplify-setting-NONBLOCK-on-socket.patch b/meta-starlingx/meta-stx-distro/recipes-security/gssproxy/files/Simplify-setting-NONBLOCK-on-socket.patch deleted file mode 100644 index 1762d69..0000000 --- a/meta-starlingx/meta-stx-distro/recipes-security/gssproxy/files/Simplify-setting-NONBLOCK-on-socket.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 6d12deeb19cc2e231463427db27f8755649450d1 Mon Sep 17 00:00:00 2001 -From: Alexander Scheel -Date: Thu, 14 Sep 2017 10:57:12 -0500 -Subject: [PATCH] Simplify setting NONBLOCK on socket - -Signed-off-by: Alexander Scheel -Reviewed-by: Simo Sorce -Reviewed-by: Robbie Harwood -Merges: #213 -[rharwood@redhat.com: fixup commit message] -(cherry picked from commit ec808ee6a5e6746ed35acc865f253425701be352) ---- - proxy/src/client/gpm_common.c | 15 +-------------- - 1 file changed, 1 insertion(+), 14 deletions(-) - -diff --git a/proxy/src/client/gpm_common.c b/proxy/src/client/gpm_common.c -index d0f99d6..7d1158e 100644 ---- a/proxy/src/client/gpm_common.c -+++ b/proxy/src/client/gpm_common.c -@@ -80,7 +80,6 @@ static int gpm_open_socket(struct gpm_ctx *gpmctx) - struct sockaddr_un addr = {0}; - char name[PATH_MAX]; - int ret; -- unsigned flags; - int fd = -1; - - ret = get_pipe_name(name); -@@ -92,24 +91,12 @@ static int gpm_open_socket(struct gpm_ctx *gpmctx) - strncpy(addr.sun_path, name, sizeof(addr.sun_path)-1); - addr.sun_path[sizeof(addr.sun_path)-1] = '\0'; - -- fd = socket(AF_UNIX, SOCK_STREAM, 0); -+ fd = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0); - if (fd == -1) { - ret = errno; - goto done; - } - -- ret = fcntl(fd, F_GETFD, &flags); -- if (ret != 0) { -- ret = errno; -- goto done; -- } -- -- ret = fcntl(fd, F_SETFD, flags | O_NONBLOCK); -- if (ret != 0) { -- ret = errno; -- goto done; -- } -- - ret = connect(fd, (struct sockaddr *)&addr, sizeof(addr)); - if (ret == -1) { - ret = errno;