Git Product home page Git Product logo

Comments (4)

posborne avatar posborne commented on August 27, 2024

Thanks for filing the issue. I tested mostly on the BBB and RPi 1 and may have been running as root (I don't recall). My expectation is that the export would be a synchronous operation, but you clearly have some evidence to the contrary. Maybe changing of permissions is handled outside of the kernel by something like udev? I'll have to research a bit more.

from rust-sysfs-gpio.

martinsp avatar martinsp commented on August 27, 2024

You are right, permissions are changed by udev, the rules are in /lib/udev/rules.d/60-python3-pifacecommon.rules and /lib/udev/rules.d/60-python-pifacecommon.rules files.

from rust-sysfs-gpio.

posborne avatar posborne commented on August 27, 2024

Ok, given that this is udev, I think I will update the example for greater compatibility and add a comment to the code stating that you may need a delay (or to poll for appropriate stat on some file). I don't think a change to the library core to add a delay would be appropriate as many systems would not be setup in the same way.

from rust-sysfs-gpio.

dbrgn avatar dbrgn commented on August 27, 2024

I agree that this library should not need to handle delays caused by udev.

from rust-sysfs-gpio.

Related Issues (20)

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.