Hi,
the attached patch fixes three issues of fuser on Cygwin.:
Cygwin does not support /proc/net/unix. The call to fill_unix_cache always generates an error message that
/proc/net/unix couldn't be found, so the patch disables the call for Cygwin. An alternative fix would be to avoid
the error message entirely.
`ls /dev' on Cygwin only lists manually added entries to /dev, not the default files suported by Cygwin internally.
Also, /proc/$PID/mountinfo doesn't exist up to Cygwin 1.7.11. This breaks fuser when using the _LISTS_H
option.
If you don't include lists.h, the code in check_dir doesn't work well. st.st_ino is never set to 0, so the
timeout(stat, ...) is never called. Also, thedev never gets a valid value in this case, but it's used subsequently for
comparisons.
Hope the patch is ok for inclusion.
Thanks,
Corinna
Fix fuser for Cygwin
I forgot one: The patch also dropsscanning /proc/$PID/lib and /proc/$PID/mmap, just as on Linux.
Corinna
Hello again Corinna,
Thanks for more of the cygwin patches. They will be in psmisc 22.17