fixes
This commit is contained in:
@@ -1870,7 +1870,7 @@ void Yap_InitIOPreds(void) {
|
||||
Yap_InitReadTPreds();
|
||||
Yap_InitFormat();
|
||||
Yap_InitRandomPreds();
|
||||
#if USE_READLINE
|
||||
#if USE_READLINE
|
||||
Yap_InitReadlinePreds();
|
||||
#endif
|
||||
Yap_InitSockets();
|
||||
|
@@ -450,7 +450,10 @@ int Yap_ReadlineForSIGINT(void) {
|
||||
|
||||
static Int has_readline(USES_REGS1) {
|
||||
#if USE_READLINE
|
||||
if (!Yap_embedded) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
|
3
os/sig.c
3
os/sig.c
@@ -834,6 +834,9 @@ static Int fpe_error(USES_REGS1) {
|
||||
|
||||
/* SIGINT can cause problems, if caught before full initialization */
|
||||
void Yap_InitOSSignals(int wid) {
|
||||
if (Yap_embedded) {
|
||||
return;
|
||||
}
|
||||
if (GLOBAL_PrologShouldHandleInterrupts) {
|
||||
#if !defined(LIGHT) && !_MSC_VER && !defined(__MINGW32__) && !defined(LIGHT)
|
||||
my_signal(SIGQUIT, ReceiveSignal);
|
||||
|
Reference in New Issue
Block a user