From 23e9289e69bd235627e822a210f821324666ad71 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Fri, 23 Feb 2024 22:16:01 +0000 Subject: [PATCH] minor doc improvement for tombstone fd code Change-Id: I8037d9dd5a6c0e86e853d001ccedc472ce61d107 --- debuggerd/tombstoned/tombstoned.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/debuggerd/tombstoned/tombstoned.cpp b/debuggerd/tombstoned/tombstoned.cpp index cf7904f81..e79035f51 100644 --- a/debuggerd/tombstoned/tombstoned.cpp +++ b/debuggerd/tombstoned/tombstoned.cpp @@ -417,6 +417,7 @@ static bool rename_tombstone_fd(borrowed_fd fd, borrowed_fd dirfd, const std::st return false; } + // This fd is created inside of dirfd in CrashQueue::create_temporary_file. std::string fd_path = StringPrintf("/proc/self/fd/%d", fd.get()); rc = linkat(AT_FDCWD, fd_path.c_str(), dirfd.get(), path.c_str(), AT_SYMLINK_FOLLOW); if (rc != 0) {