Navigation Menu

Skip to content

Commit

Permalink
unref
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Phillips committed Jul 6, 2012
1 parent 0b31bf7 commit fe6b846
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/luvit/uv.lua
Expand Up @@ -264,14 +264,12 @@ uv.createReadableStdioStream = function(fd)
local fd_type = native.handleType(fd);
if (fd_type == "TTY") then
local tty = Tty:new(fd)
native.unref()
return tty
elseif (fd_type == "FILE") then
return fs.createReadStream(nil, {fd = fd})
elseif (fd_type == "NAMED_PIPE") then
local pipe = Pipe:new(nil)
pipe:open(fd)
native.unref()
return pipe
else
error("Unknown stream file type " .. fd)
Expand Down

0 comments on commit fe6b846

Please sign in to comment.