HardenedBSD src tree https://hardenedbsd.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
240 B

  1. # $FreeBSD$
  2. T=`mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXXXX`
  3. trap 'rm -rf $T' 0
  4. cd $T || exit 3
  5. mkfifo fifo1
  6. { trap - INT; : >fifo1; sleep 5; exit 4; } &
  7. : <fifo1
  8. kill -INT "$!"
  9. wait "$!"
  10. r=$?
  11. [ "$r" -gt 128 ] && [ "$(kill -l "$r")" = INT ]