#25 Fix fuser for Cygwin

None
closed
nobody
None
5
2014-01-31
2012-03-27
No

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

Discussion

  • Corinna Vinschen

    I forgot one: The patch also dropsscanning /proc/$PID/lib and /proc/$PID/mmap, just as on Linux.

    Corinna

     
  • Craig Small

    Craig Small - 2012-05-19

    Hello again Corinna,
    Thanks for more of the cygwin patches. They will be in psmisc 22.17

     
  • Craig Small

    Craig Small - 2014-01-31
    • status: pending --> closed
    • Group: -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks