1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/testprogs/blackbox/tfork.sh
Ralph Boehme 426e407c53 lib/util: add a test for samba_runcmd_send()
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2017-04-20 16:53:16 +02:00

16 lines
152 B
Bash
Executable File

#!/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