mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-20 11:57:36 +00:00
(sys_signal): Test BROKEN_SA_RESTART.
This commit is contained in:
parent
910fb17168
commit
55fafcf080
1 changed files with 5 additions and 3 deletions
|
|
@ -2816,10 +2816,12 @@ sys_signal (int signal_number, signal_handler_t action)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue