Browse Source

colorize: handle SIGINT and SIGTERM properly

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 11 years ago
parent
commit
fc165b3f16
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      files/bin/colorize

+ 2
- 0
files/bin/colorize

@ -6,6 +6,8 @@ tmp_f=
if [ $# -eq 0 ]; then
tmp_f="${TMPDIR:-/tmp}/colorize.$$"
trap "rm -f '$tmp_f'" INT TERM
cat > "$tmp_f"
set -- "$tmp_f"
fi

Loading…
Cancel
Save