diff --git a/bash.spec b/bash.spec index bfe4814..14d15e4 100644 --- a/bash.spec +++ b/bash.spec @@ -1,7 +1,7 @@ Version: 3.0 Name: bash Summary: The GNU Bourne Again shell (bash) version %{version}. -Release: 20 +Release: 21 Group: System Environment/Shells License: GPL Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{version}.tar.gz @@ -241,6 +241,10 @@ fi %doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %changelog +* Thu Nov 11 2004 Tim Waugh 3.0-21 +- Added code to /etc/skel/.bash_logout to support the gpm selection buffer + invalidation on virtual terminals (bug #115493). + * Wed Nov 10 2004 Tim Waugh 3.0-20 - Patchlevel 16. diff --git a/dot-bash_logout b/dot-bash_logout index 926eddc..81c6dda 100644 --- a/dot-bash_logout +++ b/dot-bash_logout @@ -1,3 +1,11 @@ # ~/.bash_logout - + +# invalidate the gpm selection buffer iff logging out from a +# virtual terminal +if test -x /sbin/consoletype && /sbin/consoletype fg +then if test -r /var/run/gpm.pid && test -d "/proc/$(/bin/cat /var/run/gpm.pid)" + then kill -USR2 "$(/bin/cat /var/run/gpm.pid)" + fi +fi + clear