Sign in
gfiber
/
buildroot
/
78bb4bfad176c7404cccf62188db812393609d5d
/
.
/
fs
/
skeleton
/
bin
/
psback
blob: d411340255298efbc170f5e07e1e578a1a5add56 [
file
] [
log
] [
blame
]
#!/bin/sh
# Trace the list of parent processes from here back to 'init'.
pid
=
$PPID
out
=
while
[
"$pid"
-
gt
0
];
do
read ppid cmd
<<-
EOF
$
(
ps
-
o ppid
=,
comm
=
$pid
)
EOF
out
=
$cmd
.
$out
pid
=
$ppid
done
echo
"${out%.}"