Solution: take a copy of the file descriptor before setting it to retired_fd.
Attach a file by drag & drop or click to upload