Ingvar wrote this little hack to remove :sb-thread from *features* on
startup on a 2.4 kernel. Maybe the futex test from os_init should also
remove :sb-thread besides setting linux_no_threads_p? Maybe this patch
should be added somewhere to TOPLEVEL-INIT?
Thanks in advance, Peter
> BCL keeps the :SB-THREAD keyword in *FEATURES* even under a Linux 2.4
> kernel, where the SBCL threading support is, at best, broken (it relies,
> if memory serves correct) on stuff from 2.6 to work reliably.
> If nothing else, it breaks building SWANK (part of SLINME) out of the
> box. Well, OK, not building, per se, but it's unusable if loaded with
> :SB-THREAD as a feature.
> Possible start-up patch fto fix this up:
> (let ((is-linux-24xx t))
> (when (member :sb-thread *features*)
> (sb-alien:extern-alien "linux_no_threads_p" sb-alien:boolean)
> (setf is-linux-24xx nil)))
> (when is-linux-24xx
> (setf *features* (remove :sb-thread *features*))))
> This is untested and it's arguably not pretty (prettification 1, move the
> WHEN testing for :sb-thread to outside the LET body).
signature -at- pvaneynd.mailworks.org
"God, root, what is difference?" Pitr | "God is more forgiving." Dave