Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: bd35d55ec51537593bfc0f84257610f3f4443e84
https://github.com/tribe29/checkmk/commit/bd35d55ec51537593bfc0f84257610f3f…
Author: Benedikt Seidl <benedikt.seidl(a)tribe29.com>
Date: 2022-10-04 (Tue, 04 Oct 2022)
Changed paths:
A .werks/13431
M agents/check_mk_agent.linux
Log Message:
-----------
13431 FIX Fix async checks blocked by realtime checks
When realtime checks were configured, async checks were not executed.
The problem (and the fix) can be reproduced by the following test script:
fork_away() {
echo "start" >> /tmp/testing
date >> /tmp/testing
sleep 2
date >> /tmp/testing
echo "end" >> /tmp/testing
}
main_1_fine() {
fork_away &
}
main_2_broken() {
(
fork_away &
) | cat
}
main_3_fine() {
(
fork_away > /dev/null &
) | cat
}
main_4_broken() {
(
true && fork_away > /dev/null &
) | cat
}
main_5_fine() {
(
{ true && fork_away; } > /dev/null &
) | cat
}
main_6_fine() {
(
true && { fork_away > /dev/null & }
) | cat
}
main() {
# uncomment the one you want to test
# the bash script is expected to exit immediately
# a log line should be printed in /tmp/log after the script finished.
# main_1_fine
# main_2_broken
# main_3_fine
# main_4_broken
# main_5_fine
# main_6_fine
echo "done!"
}
main
Change-Id: I2c4be030bbd0768d39c6e8f6ac88d2ac36bdff41