Commit 5c71e3e0 authored by Andrei Vagin's avatar Andrei Vagin

test/inhfd: redirect stdin to /dev/null

Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent 034fc142
......@@ -622,7 +622,9 @@ class inhfd_test:
fd = os.open(self.__name + ".out", os.O_WRONLY | os.O_APPEND | os.O_CREAT)
os.dup2(fd, 1)
os.dup2(fd, 2)
os.close(0)
os.close(fd)
fd = os.open("/dev/null", os.O_RDONLY)
os.dup2(fd, 0)
for my_file, _ in self.__files:
my_file.close()
os.close(start_pipe[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment