Remove PID Check

This commit is contained in:
Takeya Yuki 2017-05-20 14:56:27 +09:00
parent 253a1264f8
commit 4b0cf233a8

View file

@ -1640,12 +1640,7 @@ get_term() {
esac esac
# Check $PPID for terminal emulator. # Check $PPID for terminal emulator.
while [[ -z "$term" ]]; do while [[ -z "$term" ]] || ((parent > 1)); do
parent="$(get_ppid "$parent")"
if [ "$parent" -lt 2 ]; then
parent=1
term="kernel shell on $(tty)"
fi
name="$(get_process_name "$parent")" name="$(get_process_name "$parent")"