Signal Handler not Implemented on Bash for Windows10
Hi, Turbo installs fine on Bash for Windows10 (which is basically Ubuntu 14.04 LTS)
There is a problem with the signal handler though:
[ioloop.lua] signalfd() in add_signal_handler() failed: Function not implemented
Code here: https://github.com/kernelsauce/turbo/blob/master/turbo/ioloop.lua#L305-L311
Here is the result from signalfd.lua (from examples)
luajit signalfd.lua
Press CTRL-C 3 times to exit
[ioloop.lua] signalfd() in add_signal_handler() failed: Function not implemented
^C^C^C^C^C^C^C^C^C^C
Update: https://github.com/Microsoft/BashOnWindows/issues/129
If its not supported then theres not much I can do to be honest...
Yeah I realized that too, I wonder how Node and others handle it though.
Any chance this could be sovled with sigaction? I tested this with Win10/WSL and it works.
Simple code: http://stackoverflow.com/a/1641223
I suppose. I can investigate it further, but at the moment I'm pretty tied up with work related things so it won't be done straight away.
I've played with sigaction and all early tests ended in
PANIC: unprotected error in call to Lua API (bad callback)
I hope you have more luck with it.