Am 25.10.21 um 13:25 schrieb Ævar Arnfjörð Bjarmason:
Once we have a
global current progress object we'll be able to update that object via
SIGALRM, this will cover cases where we're busy, but either haven't
invoked our first display_progress() yet, or the time between
display_progress() is too long. See [3] for early code to do that.
This can't be a goal. You cannot do serious stuff in a signal handler.
Don't proliferate complicated signal handlers.
On top of that, our SIGALRM handler on Windows runs in its own thread
and can't do more than set a volatile sigatomic_t (and even that is
undefined behavior, strictly speaking).
-- Hannes