From: Yukihiro Matsumoto Date: 2008-09-06T07:59:47+09:00 Subject: [ruby-core:18466] Re: Global constants and other magic in 1.9 stdlib Hi, In message "Re: [ruby-core:18465] Re: Global constants and other magic in 1.9 stdlib" on Sat, 6 Sep 2008 07:10:46 +0900, "David A. Black" writes: |> Since $? is a result from waitpid, which is not always bound to a |> thread. | |I'm wondering if I'm misinterpreting this as thread-local $? behavior, |and if it isn't, then what's accounting for the two $?'s: My bad. I forgot that Ruby does save/restore $? value at the context switching. It is thread-local. matz.