From 3e4caae8704b8e25dc0f093856d706a87e3f8113 Mon Sep 17 00:00:00 2001 From: Vladimir Bauer Date: Fri, 15 Nov 2024 07:38:41 +0500 Subject: [PATCH] kamp-fifo: mkfifo before trap --- scripts/kamp-fifo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kamp-fifo b/scripts/kamp-fifo index e8604f3..735e1bc 100755 --- a/scripts/kamp-fifo +++ b/scripts/kamp-fifo @@ -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"