From: Simon Ruderich Date: Mon, 27 May 2013 21:56:24 +0000 (+0200) Subject: xinitrc: Kill ssh-agent on logout. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e2fd990755824a259803852496603eb1a1130343;p=config%2Fdotfiles.git xinitrc: Kill ssh-agent on logout. --- 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