diff --git a/libexec/profile b/libexec/profile index 19da5dbd5c..9f356bc82e 100755 --- a/libexec/profile +++ b/libexec/profile @@ -35,15 +35,13 @@ echo "Running asprof on '$executable $arguments' ..." set -e -$executable $arguments >& asprof_$stub.log +$executable $arguments >& asprof_$stub.log & -pid_bash=$! +pid_exec=$! -echo PID1=$pid_bash sleep 5 -pid_java=$(pgrep -P "$pid_bash") -echo PID2=$pid_java +pid_java=$(pgrep -P "$pid_exec") ps waux && ps -p $pid_java