HomeFreeBSD

tftpd: Don't forget to close stderr on startup.

Description

tftpd: Don't forget to close stderr on startup.

Just like stdin and stdout, stderr is a copy of the listen socket inherited from inetd. We need to close it so inetd can process further requests, be restarted, etc.

Sponsored by: Klara, Inc.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D38968

Details

Provenance
desAuthored on Mar 10 2023, 1:24 PM
Reviewer
markj
Differential Revision
D38968: tftpd: Don't forget to close stderr on startup.
Parents
rGb4736c90adb8: tftpd: Don't consume arbitrary requests when failing to fork.
Branches
Unknown
Tags
Unknown