- Added code to /etc/skel/.bash_logout to support the gpm selection buffer

invalidation on virtual terminals (bug #115493).
This commit is contained in:
Tim Waugh 2004-11-11 15:31:43 +00:00
parent 2f386a8c17
commit dbaad3971a
2 changed files with 14 additions and 2 deletions

View File

@ -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 <twaugh@redhat.com> 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 <twaugh@redhat.com> 3.0-20
- Patchlevel 16.

View File

@ -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