From: "Mauricio Fernández" Date: 2003-02-28T01:42:40+09:00 Subject: Re: Threads, pipes, popen, whatever On Thu, Feb 27, 2003 at 10:59:36PM +0900, Robert Klemme wrote: > > > Yes, I did not think of looking for a global variable. This is a nice > > > example of the drawbacks: If two threads use popen you can't be sure > any > > > more that the value you read from $? is the correct one. > > > > Nope, $? is thread local. > > Just out of curiosity: where is that documented? I could not find it at > http://www.ruby-lang.org/en/man-1.4/variable.html#question Thanks! Pickaxe p. 218. I couldn't locate the pertinent table in the HTML version, believe it's not there... -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Fairlight: udp is the light margarine of tcp/ip transport protocols :) -- Seen on #Linux