Fix typo in the TCP fork comments.

"is sent by the child has finshed the close" was meant to read
"is sent when the child has finished the close".

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER authored and Simon Kelley committed 2026-08-20 15:52:04 +01:00
1 parent b518bc425d
commit cf9c9c74e0
1 file changed
+2 -2
+2 -2
View File
@@ -2147,7 +2147,7 @@ static void do_tcp_connection(struct listener *listener, time_t now, int slot)
To avoid the race, the parent blocks here until a
single byte comes back up the pipe, which
is sent by the child has finshed the close. */
is sent when the child has finished the close. */
read_write(pipefd[0], &a, 1, RW_READ);
daemon->tcp_pids[slot] = p;
@@ -2287,7 +2287,7 @@ int swap_to_tcp(struct frec *forward, time_t now, int status, struct dns_header
To avoid the race, the parent blocks here until a
single byte comes back up the pipe, which
is sent by the child has finshed the close. */
is sent when the child has finished the close. */
read_write(pipefd[0], &a, 1, RW_READ);
/* i holds index of free slot */