dotoold: fix background process not being killed
This commit is contained in:
parent
7d4ff5f864
commit
761b5bd202
1 changed files with 1 additions and 2 deletions
3
dotoold
3
dotoold
|
@ -19,8 +19,7 @@ if fifo_being_read "$p" 2> /dev/null; then
|
|||
fi
|
||||
|
||||
rm -rf "$p" || exit 1
|
||||
trap 'rm -rf "$p"; trap - EXIT; exit' EXIT INT TERM HUP
|
||||
trap 'rm -rf "$p"; pkill -P $$; trap - EXIT; exit' EXIT INT TERM HUP
|
||||
mkfifo -m 660 "$p" || exit 1
|
||||
dotool <> "$p" &
|
||||
wait
|
||||
pkill -P $$
|
||||
|
|
Loading…
Reference in a new issue