Mercurial > octave
changeset 29710:97e12df28ee6
make interrupts work in GUI command window again (bug #60079)
* signal-wrappers.c (octave_kill_wrapper): Call raise if it is
available and kill is not.
* bootstrap.conf (gnulib_modules): Include raise in the list.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 27 May 2021 19:31:35 -0400 |
parents | 3f61913fdee4 |
children | 7a0be7c8b7ca |
files | bootstrap.conf liboctave/wrappers/signal-wrappers.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bootstrap.conf Wed May 26 13:45:14 2021 -0400 +++ b/bootstrap.conf Thu May 27 19:31:35 2021 -0400 @@ -77,6 +77,7 @@ pipe-posix progname putenv + raise readdir rewinddir rmdir
--- a/liboctave/wrappers/signal-wrappers.c Wed May 26 13:45:14 2021 -0400 +++ b/liboctave/wrappers/signal-wrappers.c Thu May 27 19:31:35 2021 -0400 @@ -51,8 +51,11 @@ { #if defined (HAVE_KILL) return kill (pid, signum); +#elif defined (HAVE_RAISE) + octave_unused_parameter (pid); + + return raise (signum); #else - octave_unused_parameter (pid); octave_unused_parameter (signum);