Skip to content
Snippets Groups Projects
Commit 4de17851 authored by Niels Möller's avatar Niels Möller
Browse files

Reverted previous change. Use a

single-digit fd.

Rev: src/testsuite/daemon-fd-test:1.3
parent 92ae15a5
No related branches found
No related tags found
No related merge requests found
...@@ -8,14 +8,15 @@ fi ...@@ -8,14 +8,15 @@ fi
[ -d /proc/self/fd ] || test_skip [ -d /proc/self/fd ] || test_skip
# Opens a spurios fd 17. # Opens a spurios fd 9.
exec 9>&2
# Ignore fd 3, since it's used by the ls program to get to read the # Ignore fd 3, since it's used by the ls program to get to read the
# directory. On linux, fd 3 should be a link to the appropriate # directory. On linux, fd 3 should be a link to the appropriate
# "/proc/<pid>/fd" directory, while on Solaris, it for some reason is # "/proc/<pid>/fd" directory, while on Solaris, it for some reason is
# a link to "/". # a link to "/".
spawn_lshd 17>&2 && exec_lsh ls /proc/self/fd | grep -v '^3$'> test.out1 spawn_lshd && exec_lsh ls /proc/self/fd | grep -v '^3$'> test.out1
cat >test.out2 <<EOF cat >test.out2 <<EOF
0 0
1 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment