JakeChampion opened a new pull request, #12407: URL: https://github.com/apache/trafficserver/pull/12407
The check_fd() function had a critical bug where it would unconditionally close and reopen log files to verify existence. This was dangerous for special files like "stderr" and "stdout" which map to standard file descriptors - closing stderr (fd 2) could break error reporting for the entire process. Fixed by: - Skip existence checks entirely for "stderr" and "stdout" files - Use fstat() on open file descriptors to detect unlinked files instead of access() + close/reopen pattern - Check st_nlink == 0 to detect when files have been externally deleted - Fall back to path-based existence check only when fstat() fails -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@trafficserver.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org