mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 12:39:22 +08:00

The documentation for this function suggests that it can handle invalid descriptors safely. This change allows negative descriptors to be handled without a crash.