-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syscall.t.sa_sigaction is a nil value #176
Comments
I removed the sigaction callback code. I couldn't convince myself that it is safe to execute Lua functions in a random callback like this, although it may well be ok. I recommend using signalfd for signal handling instead if at all possible. |
Thanks for the quick reply. By quickly reading over the signalfd section in
|
Yes thats right. It is a really nice interface. You can just read it with your other events (eg with epoll), and it queues events. |
@justincormack Does ljsyscall provide a way to map a signo to its "string name"? E.g. I have a |
I am getting the following when calling
|
Can you give an example program that fails with signalfd? The test in test/linux.lua seems to be passing for me... |
@justincormack NVM. The error was due to me passing invalid arguments to |
examples/sigint.lua
uses thesyscall.t.sa_sigaction
function which is not defined? Where is it?The text was updated successfully, but these errors were encountered: