Skip to content

Commit 52227bc

Browse files
committed
fix(fkill): stop when initial signal fails
1 parent 2443c4d commit 52227bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.local/bin/fkill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
if [ -n "$pid" ]; then
88
# Send SIGTERM
9-
echo "$pid" | xargs kill -"${1:-15}"
9+
echo "$pid" | xargs kill -"${1:-15}" || exit
1010

1111
(
1212
sleep 5

0 commit comments

Comments
 (0)