Fix from Michael Stone for SF bug #660476 and #513033 (bogus thread
state swaps in readline).
3 files changed