From 3821b3a5d808c0f569a62de78eeda8c1e241ec17 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Tue, 3 Sep 2024 18:58:22 +0000 Subject: [PATCH] fix PARENT_PID --- integration_tests/light_iprof_only_sync.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration_tests/light_iprof_only_sync.sh b/integration_tests/light_iprof_only_sync.sh index 20683ee2..2e5bd8d1 100755 --- a/integration_tests/light_iprof_only_sync.sh +++ b/integration_tests/light_iprof_only_sync.sh @@ -1,5 +1,6 @@ #!/bin/bash set -euo pipefail + # For loging and Daemon to send signal to us PARENT_PID=$$ @@ -14,7 +15,7 @@ RT_SIGNAL_FINISH=$((SIGRTMIN + 3)) # Signal handler for capturing signals handle_signal() { - echo "$PARENT_PID $(date) | Received signal $1 from mpi_daemon" + echo "$PARENT_PID $(date) | Received signal $1 from sync_daemon" if [ "$1" == "RT_SIGNAL_READY" ]; then SIGNAL_RECEIVED="true" fi @@ -34,7 +35,7 @@ wait_for_signal() { # before spawning or signaling the daemon spawn_daemon_blocking() { SIGNAL_RECEIVED="false" - "${THAPI_BIN_DIR}"/sync_daemon_"${THAPI_SYNC_DAEMON}" PARENT_PID & + "${THAPI_BIN_DIR}"/sync_daemon_"${THAPI_SYNC_DAEMON}" $PARENT_PID & DAEMON_PID=$! wait_for_signal }