diff options
| -rwxr-xr-x | src/logging | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
