[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interrupting Octave
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Interrupting Octave |
Date: |
Wed, 12 May 2010 18:31:20 +0900 (JST) |
Hello
> > In config.h when I built octave-3.2.4, there seems to be no definition of
> > USE_W32_SIGINT.
> >
> > However I do not know whether there is a indirect definition of
> > USE_W32_SIGINT.
I have looked into the octave source a little bit more in detail.
In src/sysdep.h
#if defined (__WIN32__) && ! defined (_POSIX_VERSION)
extern void MINGW_signal_cleanup (void);
#define USE_W32_SIGINT 1
#define MINGW_SIGNAL_CLEANUP() MINGW_signal_cleanup ()
#else
#define MINGW_SIGNAL_CLEANUP() do { } while (0)
#endif
the definition of USE_W32_SIGINT is found.
In addition, sysdep.h is included from the sighandlers.cc.
Perhaps SetConsoleCtrlHandler is used for windows native version (not cygwin).
For the description of the development branch, the gnulib sinaction,
sigprocmask and signal.h are
used. However, they seemed not to have the SIGINT related modifications.
Perhaps even in development source the function SetConsoleCtrlHandle might be
used.
However I cannot say the aboves are correct with confidence.
Can somebody else give more definite relies on this matter?
Regards
Tatsuro
--------------------------------------
2010 FIFA World Cup News [Yahoo!Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/southafrica2010/