fix(socket_mt): disable real "shutdown" function

internal: b3e8a313
This commit is contained in:
Espressif Systems
2018-03-26 10:39:04 +08:00
parent 408104dca7
commit 25a9c26df3
3 changed files with 8 additions and 3 deletions

View File

@ -13,7 +13,7 @@ gwen:
gitlab:
espconn: 3a998034
freertos: a9985a9c
lwip: 391bef1e
lwip: 1651e055
driver: 7bee5263
mbedtls: 1ac9f1f4
ssl: eefb383a

Binary file not shown.

View File

@ -832,7 +832,7 @@ int lwip_fcntl_mt(int s, int cmd, int val)
return ret;
}
int lwip_shutdown_mt(int s, int how)
LOCAL int __lwip_shutdown_mt(int s, int how)
{
int ret;
@ -847,6 +847,11 @@ int lwip_shutdown_mt(int s, int how)
return ret;
}
int lwip_shutdown_mt(int s, int how)
{
return lwip_shutdown(s, how);
}
int lwip_close_mt(int s)
{
int ret;
@ -854,7 +859,7 @@ int lwip_close_mt(int s)
SYS_ARCH_DECL_PROTECT(lev);
sys_mutex_t lock_tmp[SOCK_MT_LOCK_MAX];
lwip_shutdown_mt(s, SHUT_RDWR);
__lwip_shutdown_mt(s, SHUT_RDWR);
LWIP_ENTER_MT(s, SOCK_MT_CLOSE, 0);