shithub: mq

Download patch

ref: 1bb450e8f72de8fa90cc298bf993e04551a03c05
parent: 41c3ba6e0a21f385552bd9c5d506dc1aa3e9a7a0
author: kvik <kvik@a-b.xyz>
date: Sun Sep 13 09:41:03 EDT 2020

pin: terminate on hangup and kill

--- a/rc/pin
+++ b/rc/pin
@@ -70,6 +70,7 @@
 		echo -n interrupt >>$mq/note
 		status = interrupted
 	}
+	fn sighup sigkill { term }
 	mq-cat $mq 0 1 2 &
 	killem = ($killem $apid)
 	input </fd/0 >>$mq/0 &