• T
    Use `fcntl(fd, F_GETFD)` to detect if standard streams are open · e0a53ed6
    Tomasz Miąsko 提交于
    In the previous implementation, if the standard streams were open,
    but the RLIMIT_NOFILE value was below three, the poll would fail
    with EINVAL:
    
    > ERRORS: EINVAL The nfds value exceeds the RLIMIT_NOFILE value.
    
    Switch to the existing fcntl based implementation to avoid the issue.
    e0a53ed6
nofile-limit.rs 1.3 KB