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
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
Hope the patch is ok for inclusion.
Log in to post a comment.