We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f70c1d3 commit 1e93434Copy full SHA for 1e93434
cylc/flow/etc/job.sh
@@ -200,7 +200,7 @@ cylc__set_return() {
200
###############################################################################
201
# Save the data using cylc message and exit the profiler
202
cylc__kill_profiler() {
203
- if [[ -n "${profiler_pid:-}" && -d "/proc/${profiler_pid}" ]]; then
+ if [[ -n "${profiler_pid:-}" ]] && ps -p "$profiler_pid" > /dev/null; then
204
kill -s SIGINT "${profiler_pid}" || true
205
fi
206
}
0 commit comments