Skip to content

Commit 2382467

Browse files
authored
Change CPID to something a little less cryptic
1 parent 17cf30a commit 2382467

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

save_command_strategies/linux_procfs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44

55
PANE_PID="$1"
6-
CPID=$(pgrep -P $PANE_PID)
6+
COMMAND_PID=$(pgrep -P $PANE_PID)
77

88
exit_safely_if_empty_ppid() {
99
if [ -z "$PANE_PID" ]; then
@@ -12,8 +12,8 @@ exit_safely_if_empty_ppid() {
1212
}
1313

1414
full_command() {
15-
[[ -z "$CPID" ]] && exit 0
16-
cat /proc/${CPID}/cmdline | xargs -0 printf "%q "
15+
[[ -z "$COMMAND_PID" ]] && exit 0
16+
cat /proc/${COMMAND_PID}/cmdline | xargs -0 printf "%q "
1717
}
1818

1919
main() {

0 commit comments

Comments
 (0)