X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fstress%2Ftest_multi_sessions_per_uid_10app;fp=tests%2Fstress%2Ftest_multi_sessions_per_uid_10app;h=90ef81963bfd57868726dc9682557176caae0388;hp=c25e303b03e38690fe0d61a2aec9fb60e83b3d01;hb=db7b260cfaefc5c9065650ac21bfe21c2e401192;hpb=91d98ef4e90718227d9af28627c838fc73bd1e3e diff --git a/tests/stress/test_multi_sessions_per_uid_10app b/tests/stress/test_multi_sessions_per_uid_10app index c25e303b0..90ef81963 100755 --- a/tests/stress/test_multi_sessions_per_uid_10app +++ b/tests/stress/test_multi_sessions_per_uid_10app @@ -43,7 +43,7 @@ function enable_channel_per_uid() function check_sessiond() { - if [ -z "$(pidof lt-lttng-sessiond)" ]; then + if [ -z "$(pgrep --full lt-lttng-sessiond)" ]; then local str_date=$(date +%H%M%S-%d%m%Y) diag "!!!The session daemon died unexpectedly!!!" @@ -65,7 +65,7 @@ function start_sessiond() BAIL_OUT "*** Kernel too old for session daemon tests ***" fi - if [ -z $(pidof lt-$SESSIOND_BIN) ]; then + if [ -z $(pgrep --full lt-$SESSIOND_BIN) ]; then # We have to start it like this so the ulimit -c is used by this # process. Also, we collect any error message printed out. $TESTDIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --quiet --background --consumerd32-path="$TESTDIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$TESTDIR/../src/bin/lttng-consumerd/lttng-consumerd" >$LOG_FILE 2>&1