Skip to content

hugetop: correct select() nfds parameter

The nfds parameter represents the number of file descriptors to examine, not a file descriptor value. Using STDOUT_FILENO was semantically incorrect despite working coincidentally. Since we examine STDIN_FILENO only, nfds should be 1.

Signed-off-by: Chunsheng Luo luffyluo@tencent.com

Merge request reports

Loading