From e2fd990755824a259803852496603eb1a1130343 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 27 May 2013 23:56:24 +0200 Subject: [PATCH] xinitrc: Kill ssh-agent on logout. --- xinitrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xinitrc b/xinitrc index 79f3564..162efa4 100755 --- a/xinitrc +++ b/xinitrc @@ -99,3 +99,11 @@ fi # Start window manager. xmonad + +# Cleanup. +# +# Kill ssh-agent to prevent unused background processes. +if test -x /usr/bin/ssh-agent; then + /usr/bin/ssh-agent -k >/dev/null + # No `eval` necessary, we terminate anyway. +fi -- 2.44.1