turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Signal Handler not Implemented on Bash for Windows10

Open luastoned opened this issue 8 years ago • 7 comments

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

luastoned avatar Jan 10 '17 16:01 luastoned

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

luastoned avatar Jan 10 '17 16:01 luastoned

Update: https://github.com/Microsoft/BashOnWindows/issues/129

luastoned avatar Jan 10 '17 16:01 luastoned

If its not supported then theres not much I can do to be honest...

kernelsauce avatar Jan 15 '17 13:01 kernelsauce

Yeah I realized that too, I wonder how Node and others handle it though.

luastoned avatar Jan 15 '17 23:01 luastoned

Any chance this could be sovled with sigaction? I tested this with Win10/WSL and it works.

Simple code: http://stackoverflow.com/a/1641223

luastoned avatar Mar 16 '17 15:03 luastoned

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.

kernelsauce avatar Mar 17 '17 12:03 kernelsauce

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.

luastoned avatar Mar 17 '17 14:03 luastoned