Giter VIP home page Giter VIP logo

pam's Issues

Finalizer is not thread safe and may end up breaking some modules

I was trying to an extra test to go-pam, to test the finalizer:

3v1n0@693b913

But as you can see from the message, it may not behave as expected.

In fact I feel that calling data finalizers on modules side from a
groutine as SetFinalizer does could create troubles as you can see in
logs from: https://github.com/msteinert/pam/actions/runs/6355635285

PAM per se is thread safe but modules may not and this could be problematic since it's implicitly happening in a goroutine.

So, we decided with @msteinert to just drop this and make usage of End() to be explicit.

Building on mac gives errors on certain symbols

../../go/pkg/mod/github.com/msteinert/pam/[email protected]/errors.go:81:21: could not determine kind of name for C.PAM_BAD_ITEM
../../go/pkg/mod/github.com/msteinert/pam/[email protected]/errors.go:84:23: could not determine kind of name for C.PAM_CONV_AGAIN
../../go/pkg/mod/github.com/msteinert/pam/[email protected]/errors.go:88:24: could not determine kind of name for C.PAM_INCOMPLETE

They are probably Linux specific. Can these be OS architecture dependent?

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.