Linux popen() alternative
#1
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.
Reply
Thanks given by:


Messages In This Thread
Linux popen() alternative - by xoft - 05-04-2015, 05:56 AM
RE: Linux popen() alternative - by NiLSPACE - 05-04-2015, 06:17 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 06:19 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 06:23 AM
RE: Linux popen() alternative - by NiLSPACE - 05-04-2015, 06:26 AM
RE: Linux popen() alternative - by worktycho - 05-04-2015, 06:59 AM
RE: Linux popen() alternative - by worktycho - 05-04-2015, 07:17 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 07:46 AM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 07:30 AM
RE: Linux popen() alternative - by xoft - 05-05-2015, 07:40 AM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 08:11 AM
RE: Linux popen() alternative - by xoft - 05-05-2015, 03:58 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 09:16 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 10:17 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 10:28 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 10:56 PM
RE: Linux popen() alternative - by xoft - 05-05-2015, 11:14 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 11:22 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 11:32 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 11:34 PM
RE: Linux popen() alternative - by tigerw - 05-06-2015, 03:47 AM
RE: Linux popen() alternative - by xoft - 05-08-2015, 12:33 AM
RE: Linux popen() alternative - by NiLSPACE - 05-08-2015, 12:38 AM
RE: Linux popen() alternative - by xoft - 05-08-2015, 12:40 AM
RE: Linux popen() alternative - by NiLSPACE - 05-08-2015, 12:42 AM



Users browsing this thread: 5 Guest(s)