Skip to content

Calling gpiod_line_get_value() (so v1.6, sorry!) from a signal handler #119

Answered by brgl
RobMeades asked this question in Q&A
Discussion options

You must be logged in to vote

The 2.2.2 you're seeing appended to the .so is the ABI version, the API version is v1.6.3.

Answering your question: no, none of the libgpiod functions are safe to call from signal handlers. Please consider using signalfd().

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RobMeades
Comment options

Answer selected by RobMeades
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants