From: ahoward Date: 2003-01-27T09:16:27+09:00 Subject: Re: solaris porting problem -- flock failure? On Mon, 27 Jan 2003, ts wrote: > >>>>> "a" == ahoward writes: > > a> also, and i may be wrong on this, it looks like the implementation of > a> rb_file_flock should not cause the thread to block, but should send it into a > a> busy wait - are you sure that failing to aquire the lock blocked _all_ > a> threads? > > Well perhaps you have not seen this > > a> 1531 #if defined(EWOULDBLOCK) && 0 no, that's what i'm saying : why has this method be 'commented out'?? it looks like someone's intention was for attempting to aquire a lock _not_ to block the current thread... does anyone have the source for the 1.8 version? also, earlier you said that flock was 'broken' on solaris. what exactly did you mean by that? supposedly solaris uses fcntl to implement flock so why does ruby need it's own? i'm sure there is an answer i'm just curious... -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================