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
..
2026-03-17 20:14:22 +03:00
2024-11-05 13:49:00 +03:00
2024-11-05 13:49:00 +03:00
2026-08-05 12:46:43 +03:00
2024-11-16 14:53:04 +03:00
2024-11-05 13:49:00 +03:00
2026-03-20 16:31:30 +03:00
2026-05-26 21:37:21 +03:00
2025-03-06 16:26:38 +03:00
2025-08-13 11:17:00 +03:00
2026-08-05 17:39:35 +03:00
2026-05-29 09:56:29 +03:00
2025-03-28 14:15:21 +03:00
2024-01-17 18:39:53 +03:00