mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-01 22:33:30 +00:00
test/inhfd: redirect stdin to /dev/null
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
parent
034fc1424f
commit
5c71e3e028
1 changed files with 3 additions and 1 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue