Skip to content

Commit 16cdf97

Browse files
Jordymalonedevarajabc
authored andcommitted
Fix misleading comment
The previous comments incorrectly suggested that the file descriptor was not yet ready. In fact, the check (web_fd != -1) ensures that web_fd is valid and should be monitored in the read set. This commit updates the comment to clearly state that web_fd is available, providing an accurate description of the code's behavior. Change-Id: Ib81d417a848e1cf41f289bd2abafb2de1c8a23d8
1 parent 95b9564 commit 16cdf97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static int cmd_select(int nfds,
588588
FD_ZERO(readfds);
589589
FD_SET(infd, readfds);
590590

591-
/* If web not ready listen */
591+
/* If web_fd is available, add to readfds */
592592
if (web_fd != -1)
593593
FD_SET(web_fd, readfds);
594594

0 commit comments

Comments
 (0)