05-04-2015, 05:56 AM
Apparently Linux has a problem spawning other processes from a multithreaded process: http://www.linuxprogrammingblog.com/thre...using-them
I've run into this issue while trying to use Lua's io.popen() from the Gallery plugin ( https://github.com/mc-server/Gallery/blo...st.lua#L72 ), it works perfectly on my Windows box, but when trying to run this on a RasPi server, the server freaks out - the server seems to be running fine, but the web request never finishes, the browser is stuck at "Reading from ...", and when I attach GDB, there is no sign of any WebAdmin threads at all. There's also no network activity of any kind, even the MC client port seems closed, although the server still looks as if it is running, it responds to console commands.
So now I need the help of a Linux guru. Is there any alternative to popen that I could use? I don't really need the IO redirection, just spawning the process in the background would be nice, but if there was an IO-redirection-capable solution, that would allow us to override Lua's io.popen() seamlessly.
I've run into this issue while trying to use Lua's io.popen() from the Gallery plugin ( https://github.com/mc-server/Gallery/blo...st.lua#L72 ), it works perfectly on my Windows box, but when trying to run this on a RasPi server, the server freaks out - the server seems to be running fine, but the web request never finishes, the browser is stuck at "Reading from ...", and when I attach GDB, there is no sign of any WebAdmin threads at all. There's also no network activity of any kind, even the MC client port seems closed, although the server still looks as if it is running, it responds to console commands.
So now I need the help of a Linux guru. Is there any alternative to popen that I could use? I don't really need the IO redirection, just spawning the process in the background would be nice, but if there was an IO-redirection-capable solution, that would allow us to override Lua's io.popen() seamlessly.