mirror of
https://github.com/opnsense/src.git
synced 2026-02-15 08:38:13 -05:00
9 lines
234 B
Text
9 lines
234 B
Text
# $FreeBSD$
|
|
|
|
result=$(sh -c '(/bin/sleep 1)& sleep 0.1; ps -p $! -o comm=; kill $!')
|
|
test "$result" = sleep || exit 1
|
|
|
|
result=$(sh -c '{ trap "echo trapped" EXIT; (/usr/bin/true); } & wait')
|
|
test "$result" = trapped || exit 1
|
|
|
|
exit 0
|