From 0728a004f189ca766a215172a31b6c952e4fb162 Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Wed, 20 Aug 2003 11:56:54 +0000 Subject: [PATCH] 0.8.2.47: Fix the shell suspension bug and threaded builds --- NEWS | 2 ++ src/runtime/linux-os.c | 5 ++--- version.lisp-expr | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index a413eaf..a9ed63a 100644 --- a/NEWS +++ b/NEWS @@ -1971,6 +1971,8 @@ changes in sbcl-0.8.3 relative to sbcl-0.8.2: * bug fix in READ-SEQUENCE: READ-SEQUENCE following PEEK-CHAR or UNREAD-CHAR now correctly includes the unread character in the target sequence. (thanks to Gerd Moellmann) + * bug fix in threaded builds: the system can now be suspended and + resumed by shell job control with minimal disruption. * new optimization: inside a named function any reference to a function with the same name is considered to be a self-reference; this behaviour is controlled with SB-C::RECOGNIZE-SELF-CALLS diff --git a/src/runtime/linux-os.c b/src/runtime/linux-os.c index aed1458..b57b510 100644 --- a/src/runtime/linux-os.c +++ b/src/runtime/linux-os.c @@ -23,6 +23,7 @@ #include #include #include +#include "sbcl.h" #include "./signal.h" #include "os.h" #include "arch.h" @@ -30,7 +31,6 @@ #include "interrupt.h" #include "interr.h" #include "lispregs.h" -#include "sbcl.h" #include #include @@ -251,8 +251,7 @@ void sigcont_handler(int signal, siginfo_t *info, void *void_context) /* we need to have a handler installed for this signal so that * sigwaitinfo() for it actually returns at the appropriate time */ - fprintf(stderr, "Thread %d received stray SIGCONT\n", - arch_os_get_current_thread()->pid); + fprintf(stderr, "Thread %d received stray SIGCONT\n", getpid()); } void diff --git a/version.lisp-expr b/version.lisp-expr index d3bfdb5..957c649 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"0.8.2.46" +"0.8.2.47" -- 1.7.10.4