summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/abseil-cpp-tstring/patches/fix-grpc-wait-erestartsys.patch
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2025-06-21 00:32:12 +0300
committerthegeorg <[email protected]>2025-06-21 00:49:01 +0300
commit55316cf27ec6893e10169f521113d8fa1639e1e4 (patch)
tree5e09e62ac817e229c07fbb743dab1d3dfb611ee4 /contrib/restricted/abseil-cpp-tstring/patches/fix-grpc-wait-erestartsys.patch
parentf973252cef2252054cfa38a3384c5f63c6c57ed6 (diff)
Merge numerous abseil-cpp-tstring sublibraries to ease unbundling
commit_hash:257c1f495ecb3aac071ea951e8384c5b7d0a5251
Diffstat (limited to 'contrib/restricted/abseil-cpp-tstring/patches/fix-grpc-wait-erestartsys.patch')
-rw-r--r--contrib/restricted/abseil-cpp-tstring/patches/fix-grpc-wait-erestartsys.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/restricted/abseil-cpp-tstring/patches/fix-grpc-wait-erestartsys.patch b/contrib/restricted/abseil-cpp-tstring/patches/fix-grpc-wait-erestartsys.patch
new file mode 100644
index 00000000000..0f924154fd0
--- /dev/null
+++ b/contrib/restricted/abseil-cpp-tstring/patches/fix-grpc-wait-erestartsys.patch
@@ -0,0 +1,11 @@
+--- contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/internal/futex_waiter.cc (f090c19d9eef233290e4fd8af760f9991fbdb714)
++++ contrib/restricted/abseil-cpp-tstring/y_absl/synchronization/internal/futex_waiter.cc (e6361f84d455fa283366753dd2cdf0491af4aa22)
+@@ -77,7 +77,7 @@ bool FutexWaiter::Wait(KernelTimeout t) {
+ if (!first_pass) MaybeBecomeIdle();
+ const int err = WaitUntil(&futex_, 0, t);
+ if (err != 0) {
+- if (err == -EINTR || err == -EWOULDBLOCK) {
++ if (err == -EINTR || err == -EWOULDBLOCK || err == -512 /* ERESTARTSYS */ || err == -516 /* ERESTART_RESTARTBLOCK */) {
+ // Do nothing, the loop will retry.
+ } else if (err == -ETIMEDOUT) {
+ return false;