Skip to content

Commit

Permalink
kamp-fifo: mkfifo before trap
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Nov 15, 2024
1 parent 65c67ac commit 3e4caae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kamp-fifo
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ kamp >/dev/null # fail early if there is no session

d=$(mktemp -d)
fifo="$d/fifo"
mkfifo "$fifo"

trap 'unlink "$fifo" && rmdir "$d"; exit' EXIT HUP INT TERM
mkfifo "$fifo"

if [ "$cflag" ]; then
kamp -c "$cval" send "edit -scroll -fifo $fifo *${1:-kamp-fifo}*; focus"
Expand Down

0 comments on commit 3e4caae

Please sign in to comment.