30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 801aafea1889a5c54ca884f62b0a24c5d6b6d8ce Mon Sep 17 00:00:00 2001
|
|
From: yinbin <yinbin8@huawei.com>
|
|
Date: Sat, 18 Nov 2023 19:09:34 +0800
|
|
Subject: [PATCH] wrap: dont hijack select temporarily
|
|
|
|
---
|
|
src/lstack/api/lstack_wrap.c | 6 +-----
|
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
|
|
|
diff --git a/src/lstack/api/lstack_wrap.c b/src/lstack/api/lstack_wrap.c
|
|
index 9468003..1e67b76 100644
|
|
--- a/src/lstack/api/lstack_wrap.c
|
|
+++ b/src/lstack/api/lstack_wrap.c
|
|
@@ -582,11 +582,7 @@ static int32_t do_sigaction(int32_t signum, const struct sigaction *act, struct
|
|
|
|
static int32_t do_select(int32_t nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
|
|
{
|
|
- if (select_posix_path() == PATH_KERNEL) {
|
|
- return posix_api->select_fn(nfds, readfds, writefds, exceptfds, timeout);
|
|
- }
|
|
-
|
|
- return g_wrap_api->select_fn(nfds, readfds, writefds, exceptfds, timeout);
|
|
+ return posix_api->select_fn(nfds, readfds, writefds, exceptfds, timeout);
|
|
}
|
|
|
|
#define WRAP_VA_PARAM(_fd, _cmd, _lwip_fcntl, _fcntl_fn) \
|
|
--
|
|
2.27.0
|
|
|