From: Bill Kelly Date: 2004-07-02T04:04:54+09:00 Subject: Re: PTY.spawn error-prone? From: "Hal Fulton" > > Well, that doesn't sound *so* bad... but I would swear that sometimes > it is crapping out for no reason at all. (Yeah, I know, "select isn't > broken" -- thanks, Dave.) Funny thing... A day or two after reading this, and smiling at the "select isn't broken" part.... One of my Ruby servers with months of uptime that has always been very stable, started hanging in the recvfrom call below: resp = if select([sock], nil, nil, UDP_RECV_TIMEOUT) sock.recvfrom(65536) end I'd restart the process, and within about 24 hours it would hang again, same place. Since I hadn't changed anything in the operating system or the ruby code... I started to wonder if maybe select WAS broken. :) My system (a linux box) had about 200 days uptime... so I decided to try a reboot. The problem seems to have vanished. I just thought it was funny, because "select isn't broken" sound like VERY good advice. Only.... once in a blue moon.... Hehe... Regards, Bill