]> git.e2factory.org Git - e2factory.git/commitdiff
eio: log pipe file descriptors
authorTobias Ulmer <tu@emlix.com>
Mon, 11 Feb 2019 19:11:17 +0000 (20:11 +0100)
committerTobias Ulmer <tu@emlix.com>
Mon, 11 Feb 2019 19:11:17 +0000 (20:11 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/eio.lua

index 98eb2e76c5c1ed9a905f8270308938f6abc4305a..676d193f12b7f6fe9e5fc16613d6fcd7bfee80a0 100644 (file)
@@ -430,12 +430,11 @@ end
 -- @return File descriptor in read mode, or false on error.
 -- @return File descriptor in write mode, or error object on failure.
 function eio.pipe()
-    local fd1, fd2
-
-    fd1, fd2 = leio.pipe()
+    local fd1, fd2 = leio.pipe()
     if not fd1 then
         return false, err.new("failed creating pipe: %s", fd2)
     end
+    e2lib.logf(4, "eio.pipe() -> %d, %d", fd1, fd2)
     return fd1, fd2
 end