From: Bruno Haible Date: Sat, 27 Jun 2020 20:43:16 +0000 (+0200) Subject: Add comment. X-Git-Tag: v0.21~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba07823188f7bb59e3f0a93152825ebb14a1adc1;p=thirdparty%2Fgettext.git Add comment. * gettext-tools/src/plural-eval.c (sigfpe_handler): Add comment. --- diff --git a/gettext-tools/src/plural-eval.c b/gettext-tools/src/plural-eval.c index 63fac81c3..82fbe56ef 100644 --- a/gettext-tools/src/plural-eval.c +++ b/gettext-tools/src/plural-eval.c @@ -1,5 +1,5 @@ /* Expression evaluation for plural form selection. - Copyright (C) 2000-2003, 2005, 2019 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2005, 2019-2020 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software: you can redistribute it and/or modify @@ -49,6 +49,9 @@ static _GL_ASYNC_SAFE void sigfpe_handler (int sig, siginfo_t *sip, void *scp) { sigfpe_code = sip->si_code; + /* This handler is invoked on the thread that caused the SIGFPE, that is, + the thread that is doing plural evaluation. Therefore it's OK to use + siglongjmp. */ siglongjmp (sigfpe_exit, 1); } @@ -59,6 +62,9 @@ sigfpe_handler (int sig, siginfo_t *sip, void *scp) static _GL_ASYNC_SAFE void sigfpe_handler (int sig) { + /* This handler is invoked on the thread that caused the SIGFPE, that is, + the thread that is doing plural evaluation. Therefore it's OK to use + siglongjmp. */ siglongjmp (sigfpe_exit, 1); }