diff options
Diffstat (limited to 'testprogs/blackbox/tfork.sh')
-rwxr-xr-x | testprogs/blackbox/tfork.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testprogs/blackbox/tfork.sh b/testprogs/blackbox/tfork.sh new file mode 100755 index 0000000..0f75a8c --- /dev/null +++ b/testprogs/blackbox/tfork.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +sleep 1 + +echo stdout >&1 +echo $1 >&1 +echo stderror >&2 + +# close stdout and stderror, but don't exit yet +exec 1>&- +exec 2>&- + +sleep 1 + +exit 0 |