implement fd watching for OS X

This commit is contained in:
Christoph Ostarek
2023-02-19 18:20:00 +01:00
parent a9cef81657
commit b0cad6d3e3
3 changed files with 183 additions and 24 deletions
+3
View File
@@ -212,8 +212,11 @@ struct pvstate_s {
struct pvwatchfd_s {
unsigned int watch_pid; /* PID to watch */
int watch_fd; /* fd to watch, -1 = not displayed */
#ifdef __APPLE__
#else
char file_fdinfo[4096]; /* path to /proc fdinfo file */
char file_fd[4096]; /* path to /proc fd symlink */
#endif
char file_fdpath[4096]; /* path to file that was opened */
char display_name[512]; /* name to show on progress bar */
struct stat64 sb_fd; /* stat of fd symlink */