Commit 6855009c authored by Niels Möller's avatar Niels Möller

Avoid using exec with no arg, for

better portability.

Rev: src/testsuite/daemon-fd-test:1.2
parent 1fae7668
......@@ -8,15 +8,14 @@ fi
[ -d /proc/self/fd ] || test_skip
# Open a spurios fd
exec 17>&2
# Opens a spurios fd 17.
# 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
# "/proc/<pid>/fd" directory, while on Solaris, it for some reason is
# a link to "/".
spawn_lshd && exec_lsh ls /proc/self/fd | grep -v '^3$'> test.out1
spawn_lshd 17>&2 && exec_lsh ls /proc/self/fd | grep -v '^3$'> test.out1
cat >test.out2 <<EOF
0
1
......
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