Mercurial > hg > octave-shane
changeset 10387:eb9b2674501e
cquit.c: yes, we can assume POSIX signals
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 03 Mar 2010 00:22:42 -0500 |
parents | 84e226380769 |
children | 5af0b4bb384d |
files | libcruft/ChangeLog libcruft/misc/cquit.c |
diffstat | 2 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libcruft/ChangeLog +++ b/libcruft/ChangeLog @@ -1,3 +1,8 @@ +2010-03-02 John W. Eaton <jwe@octave.org> + + * misc/cquit.c (octave_restore_signal_mask): Assume we have + POSIX signal handling. + 2010-02-28 Jaroslav Hajek <highegg@gmail.com> * misc/lo-error.c (liboctave_fatal_with_id,
--- a/libcruft/misc/cquit.c +++ b/libcruft/misc/cquit.c @@ -231,24 +231,18 @@ sigsetjmp/siglongjmp, but saving and restoring the signal mask ourselves works ok and seems simpler just now. */ -#if defined (HAVE_POSIX_SIGNALS) static sigset_t octave_signal_mask; -#endif void octave_save_signal_mask (void) { -#if defined (HAVE_POSIX_SIGNALS) sigprocmask (0, 0, &octave_signal_mask); -#endif } void octave_restore_signal_mask (void) { -#if defined (HAVE_POSIX_SIGNALS) sigprocmask (SIG_SETMASK, &octave_signal_mask, 0); -#endif } sig_atomic_t octave_interrupt_immediately = 0;