From a138753cb5e299861d74302c775b19664e8d589d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 29 Oct 2014 18:35:43 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/logging | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/logging b/src/logging index ce879b5..db14adb 100755 --- a/src/logging +++ b/src/logging @@ -24,6 +24,9 @@ hostname= ttyname="$(tty | cut -d / -f 1,2 --complement)" hook="${1}" pid=$PPID +if [ ! "${LOGIN_PID}" = "" ]; then + pid="${LOGIN_PID}" +fi # Remove the hookname from $@ shift 1 -- cgit v1.2.3-70-g09d2