made fgetd fork into the background

This commit is contained in:
Izaya 2017-07-15 15:16:29 +10:00
parent f14f29a00a
commit 9c70b8e212

View File

@ -26,10 +26,12 @@ function fgetd_w(evPP,nid,pth)
return S return S
end end
function fgetd(evPP,preP) function fgetd(evPP,preP)
s("fgetd",function()
while true do while true do
if ev[1] == "net_msg" and ev[3] == evPP then -- f,p,m if ev[1] == "net_msg" and ev[3] == evPP then -- f,p,m
print("[fget] "..TS(ev[4])..": "..tostring(fgetd_w(ev[3],ev[2],preP.."/"..ev[4]))) print("[fget] "..TS(ev[4])..": "..tostring(fgetd_w(ev[3],ev[2],preP.."/"..ev[4])))
end end
C.yield() C.yield()
end end
end)
end end