replaced the dummy fd with one that logs to a file

Cette révision appartient à :
Izaya 2019-01-09 17:11:10 +11:00
Parent a29fc154a0
révision 604532eb6c
1 fichiers modifiés avec 1 ajouts et 7 suppressions

Voir le fichier

@ -7,11 +7,5 @@ for a,_ in component.list("gpu") do
fd[#fd+1] = {["read"]=r,["write"]=w,["close"]=function() w("\27[2J\27[H") end,["t"]="t"}
end
if #fd < 1 then
local fdi,nfd = io.newfd()
function nfd.read()
end
function nfd.write()
end
function nfd.close()
end
io.open("/boot/console.log","a")
end