If watching more than one distinct PID with --watchfd, display the PID as well as the FD number (#12).

This commit is contained in:
Andrew Wood
2025-09-28 16:36:06 +01:00
parent 77ed2e5989
commit 10ef5a8596
4 changed files with 33 additions and 8 deletions
+1
View File
@@ -167,6 +167,7 @@ struct pvstate_s {
/*@only@*/ /*@null@*/ pid_t *pid; /* array of processes to watch fds of */
/*@only@*/ /*@null@*/ int *fd; /* array of fds to watch in each one (0=all) */
unsigned int count; /* number of items in these arrays */
bool multiple_pids; /* true if more than one distinct PID */
} watchfd;
/*******************