From 64c4e8efb90b1da0dc0f8f1b3f69da5e21a274df Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Mon, 6 Oct 2025 18:03:46 +0100 Subject: [PATCH] Add TODO markers for one way of implementing #81. --- src/include/pv-internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/pv-internal.h b/src/include/pv-internal.h index 716c6b9..fee9bd4 100644 --- a/src/include/pv-internal.h +++ b/src/include/pv-internal.h @@ -518,6 +518,9 @@ struct pvwatchfd_s { off_t size; /* size of whole file, 0 if unknown */ off_t position; /* position last seen at */ struct timespec start_time; /* time we started watching the fd */ + /* TODO: changes for #81, retaining closed fds for a little while: */ + /* TODO: track "closed" as well as "displayable"/"unused" */ + /* TODO: track when closed, i.e. when ready to be removed */ pid_t watch_pid; /* PID to watch */ int watch_fd; /* fd to watch */ bool displayable; /* false if not displayable */