Displaying 2 results from an estimated 2 matches for "curr_fds".
2019 Aug 02
0
[nbdkit PATCH v2 16/17] sh: Test for fd leaks
...cript, the child shell should not see any new fds not also present
+# in nbdkit's parent environment. When testing for the count of open
+# fds, use ls in a subshell (rather than a glob directly within the
+# shell under test), to avoid yet another fd open on the /proc/self/fd
+# directory.
+
+curr_fds=
+if test -d /proc/$$/fd; then
+ curr_fds=$(/usr/bin/env bash -c '(ls /proc/$$/fd)' | wc -w)
+fi
+echo "using curr_fds=$curr_fds"
+
cat > test-parallel-sh.script <<EOF
#!/usr/bin/env bash
f=test-parallel-sh.data
if ! test -f \$f; then
echo "can't locate...
2019 Aug 02
23
[nbdkit PATCH v2 00/17] fd leak safety
This is a major rewrite compared to my v1 series, where I've tried
a lot harder to ensure that we still accommodate building on Haiku
(although I have not actually yet fired up a Haiku VM to try it
for myself). I also managed to make the sh plugin fully parallel,
on capable platforms.
See also my question on patch 10 on whether I've picked the best
naming convention.
Eric Blake (17):