made fgetd fork into the background

This commit is contained in:
Izaya 2017-07-15 15:16:29 +10:00
parent f14f29a00a
commit 9c70b8e212
1 changed files with 2 additions and 0 deletions

View File

@ -26,10 +26,12 @@ function fgetd_w(evPP,nid,pth)
return S
end
function fgetd(evPP,preP)
s("fgetd",function()
while true do
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])))
end
C.yield()
end
end)
end