Mercurial > emacs
changeset 46298:c6d9317e4393
(sys_signal): Test BROKEN_SA_RESTART.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 11 Jul 2002 17:29:56 +0000 |
parents | e3a0f935c9c5 |
children | 72e949fc6d1e |
files | src/sysdep.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.c Thu Jul 11 17:14:03 2002 +0000 +++ b/src/sysdep.c Thu Jul 11 17:29:56 2002 +0000 @@ -2816,10 +2816,12 @@ struct sigaction new_action, old_action; sigemptyset (&new_action.sa_mask); new_action.sa_handler = action; -#ifdef SA_RESTART +#if defined (SA_RESTART) && ! defined (BROKEN_SA_RESTART) /* Emacs mostly works better with restartable system services. If this - * flag exists, we probably want to turn it on here. - */ + flag exists, we probably want to turn it on here. + However, on some systems this resets the timeout of `select' + which means that `select' never finishes if it keeps getting signals. + BROKEN_SA_RESTART is defined on those systems. */ new_action.sa_flags = SA_RESTART; #else new_action.sa_flags = 0;