andrey
e89ae88f3a
fix(PICAN): align socket handling with PIEthernet patterns
- Sentinel: sock = 0 → sock = -1 (0 is stdin, valid fd)
- openDevice(): close socket on ioctl/bind failure (resource leak)
- openDevice(): set O_NONBLOCK via fcntl after socket()
- openDevice(): check setsockopt() return value
- closeDevice(): call shutdown() before close(), reset sock to -1
- readDevice() / writeDevice(): guard against sock == -1
- Add missing #include <fcntl.h>
2026-08-05 17:39:35 +03:00
..
2025-09-23 21:16:54 +03:00
2026-03-20 16:31:30 +03:00
2026-08-05 17:39:35 +03:00
2026-08-05 17:39:35 +03:00
2024-11-20 20:01:47 +03:00
2026-03-12 14:46:57 +03:00
2025-08-13 18:48:01 +03:00
2026-03-12 14:46:57 +03:00
2026-08-05 12:48:40 +03:00
2026-03-12 14:46:57 +03:00
2025-09-05 21:46:44 +03:00
2026-03-12 14:46:57 +03:00
2023-07-02 14:02:10 +03:00
2026-03-12 14:46:57 +03:00
2024-11-05 13:49:00 +03:00
2026-03-12 14:46:57 +03:00
2026-03-20 16:31:30 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 14:46:57 +03:00
2024-11-05 13:49:00 +03:00
2026-03-12 14:46:57 +03:00
2025-09-23 21:16:54 +03:00
2026-03-12 14:46:57 +03:00
2025-09-23 21:16:54 +03:00
2026-03-12 14:46:57 +03:00
2025-09-23 21:16:54 +03:00
2026-03-12 14:46:57 +03:00
2025-09-23 21:16:54 +03:00
2026-03-12 14:46:57 +03:00
2022-12-14 14:13:52 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 14:46:57 +03:00