zephyr/lib/os
Jukka Rissanen 04d8b7c595 net: sockets: Cleanup socket properly if POSIX API is enabled
The sock_obj_core_dealloc() was not called if close() is called
instead of zsock_close(). This happens if POSIX API is enabled.

Fix this by calling zvfs_close() from zsock_close() and then
pass the socket number to zsock_close_ctx() so that the cleanup
can be done properly.

Reported-by: Andreas Ålgård <aal@ixys.no>
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-11-08 15:56:39 -06:00
..
zvfs net: Deprecate CONFIG_NET_SOCKETS_POLL_MAX 2024-10-14 13:01:51 +02:00
CMakeLists.txt net: sockets: move poll implementation to zvfs 2024-10-14 13:01:51 +02:00
Kconfig lib: os: spsc_pbuf: Clarify using cache management in the module 2024-07-01 16:07:30 -04:00
Kconfig.cbprintf
assert.c
cbprintf.c
cbprintf_complete.c
cbprintf_nano.c
cbprintf_packaged.c lib: os: cbprintf_packaged: Fix cbprintf_package_convert 2024-11-01 09:56:03 -05:00
fdtable.c net: sockets: Cleanup socket properly if POSIX API is enabled 2024-11-08 15:56:39 -06:00
mpsc_pbuf.c logging: fix log buffer pending while it is definitely full 2024-08-23 08:04:18 -04:00
mutex.c
p4wq.c style: lib: comply with MISRA C:2012 Rule 15.6 2024-09-11 07:40:35 -04:00
poweroff.c
printk.c lib: os: change __printk_get_hook return type to printk_hook_fn_t 2024-07-27 10:41:01 +03:00
reboot.c
sem.c
spsc_pbuf.c
thread_entry.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
user_work.c