# HG changeset patch # User Richard M. Stallman # Date 1026408596 0 # Node ID c6d9317e43934310d99f9a51447264fad24ff98d # Parent e3a0f935c9c580e156d2d7d57ad31349ca479bc3 (sys_signal): Test BROKEN_SA_RESTART. diff -r e3a0f935c9c5 -r c6d9317e4393 src/sysdep.c --- 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;