nuttx-apps/netutils/rexecd
wangjianyu3 253f1d40c3 netutils/rexecd: use dpopen() instead of popen() to get raw fd
popen() now returns a fopencookie-backed FILE* whose fileno() yields the
cookie pointer rather than a real descriptor, so poll() silently ignores
the negative fd and the relay loop blocks forever waiting for command
completion. See https://github.com/apache/nuttx-apps/pull/3511

Use dpopen()/dpclose() to obtain the raw bidirectional socket descriptor
directly, restoring the EOF/POLLHUP command-completion signal.

Assisted-by: GitHubCopilot:claude-4.8-opus
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-06-27 08:47:46 -03:00
..
CMakeLists.txt netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
Kconfig rexec: warn users about cleartext password transmission 2023-07-01 13:23:04 +08:00
Make.defs netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
Makefile netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
rexecd.c netutils/rexecd: use dpopen() instead of popen() to get raw fd 2026-06-27 08:47:46 -03:00