From d217272f98213c03690724b5113d830401b51310 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Thu, 5 Feb 2015 21:23:14 -0800 Subject: [PATCH] refresh --- meta | 7 +++---- patches/nonblock | 22 ++++++++++++++++++++-- patches/refresh-temp | 28 ---------------------------- 3 files changed, 23 insertions(+), 34 deletions(-) delete mode 100644 patches/refresh-temp diff --git a/meta b/meta index 7c820f6e..a70c8295 100644 --- a/meta +++ b/meta @@ -1,9 +1,8 @@ Version: 1 -Previous: a65c4ab020102604da34884bb08d7ec9a9af7f74 -Head: 22cde413882f4c01a549b1ce88fe9579a351fa0d +Previous: 5302c3c49ba249e5e0c99e0717b0856f4136a3ae +Head: dacc495f23ea3719bc98a8a6c148771d5097caf0 Applied: - nonblock: 4589e78579e834b53d583ab1aee2f9566ea722d2 - refresh-temp: 22cde413882f4c01a549b1ce88fe9579a351fa0d + nonblock: dacc495f23ea3719bc98a8a6c148771d5097caf0 Unapplied: old-af-ib: aaa0d9ca917c8c361a978e5a116963c2cceac5ba old-seterr: 47eb0c419687c2690292c1910acae83a46e5388c diff --git a/patches/nonblock b/patches/nonblock index b1604e78..6df08610 100644 --- a/patches/nonblock +++ b/patches/nonblock @@ -1,5 +1,5 @@ Bottom: bc6e27468c0f7e18f8977628c2581cff36914899 -Top: bc6e27468c0f7e18f8977628c2581cff36914899 +Top: 4b3715465e5fbbc65460a5c47049ba42e48710f2 Author: Sean Hefty Date: 2015-02-05 21:17:03 -0800 @@ -15,4 +15,22 @@ Signed-off-by: Sean Hefty --- - +diff --git a/src/rsocket.c b/src/rsocket.c +index 4ff3a42..6e8f375 100644 +--- a/src/rsocket.c ++++ b/src/rsocket.c +@@ -3696,11 +3696,11 @@ int rfcntl(int socket, int cmd, ... /* arg */ ) + break; + case F_SETFL: + param = va_arg(args, long); +- if (param & O_NONBLOCK) +- ret = rs_set_nonblocking(rs, O_NONBLOCK); ++ if ((rs->fd_flags & O_NONBLOCK) != (param & O_NONBLOCK)) ++ ret = rs_set_nonblocking(rs, param & O_NONBLOCK); + + if (!ret) +- rs->fd_flags |= param; ++ rs->fd_flags = param; + break; + default: + ret = ERR(ENOTSUP); diff --git a/patches/refresh-temp b/patches/refresh-temp deleted file mode 100644 index 712814a7..00000000 --- a/patches/refresh-temp +++ /dev/null @@ -1,28 +0,0 @@ -Bottom: bc6e27468c0f7e18f8977628c2581cff36914899 -Top: 4b3715465e5fbbc65460a5c47049ba42e48710f2 -Author: Sean Hefty -Date: 2015-02-05 21:23:13 -0800 - -Refresh of nonblock - ---- - -diff --git a/src/rsocket.c b/src/rsocket.c -index 4ff3a42..6e8f375 100644 ---- a/src/rsocket.c -+++ b/src/rsocket.c -@@ -3696,11 +3696,11 @@ int rfcntl(int socket, int cmd, ... /* arg */ ) - break; - case F_SETFL: - param = va_arg(args, long); -- if (param & O_NONBLOCK) -- ret = rs_set_nonblocking(rs, O_NONBLOCK); -+ if ((rs->fd_flags & O_NONBLOCK) != (param & O_NONBLOCK)) -+ ret = rs_set_nonblocking(rs, param & O_NONBLOCK); - - if (!ret) -- rs->fd_flags |= param; -+ rs->fd_flags = param; - break; - default: - ret = ERR(ENOTSUP); -- 2.41.0