.......PS. [ZBX-8699] fixed zbx_sleep_loop() to handle correctly signal arrival