mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-02 10:56:21 +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.