Giter Site home page Giter Site logo

linux-inotify's People

Contributors

ibotty avatar lpsmith avatar mdunnio avatar wraithm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

linux-inotify's Issues

Make it safe to use inotify descriptors after they have been closed.

It turns out that the way I thought descriptors were allocated on Linux was completely incorrect, see for example jaspervdj/websockets-snap#10. Since descriptors are in fact likely to be soon reused whenever there is even a modest amount of descriptor churn, I do think it would be a good idea to protect against use-after-close faults.

This could be accomplished by adding an MVar Bool to the Inotify structure representing the descriptor, or by storing the descriptor itself inside a MVar (Maybe Fd). As a side benefit, it would also make it possible to make all the other operators thread-safe.

Example code?

Hello,

Could you please add some examples?

Thanks

Upload to hackage

@lpsmith We've got a pull request to upgrade to GHC 8 in a backwards incompatible way. Would you mind merging that and uploading to hackage? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.