On Wed, Sep 11, 2002 at 02:23:33AM +0900, Jos Backus wrote:
> I am happy to report that with this patch my script no longer dies with the
> Errno::EINTR exception being raised. The script has been running over a day
> without exiting whereas without this patch it would invariably exit within 30
> minutes-2 hours.

Unfortunately I spoke too quickly :-( I don't quite understand yet why but my
script turns the following input such as the following

gmt=2002/09/18  21:29:31        local-time=2002/09/18   14:29:31        server-name=tutoriald   host-name=storefull-2392        pid=27791       is-stats-event=true     service-group=LawsonThreeNineStorefullServers   stats-period=300.000000 max-cons=512    cur-cons=0      period-cons=1   cur-cons-active=0       period-cons-active=1    period-max-cons=1       period-max-cons-active=1        period-reqs-handled-children=1  period-reqs-handled=1   cur-reqs-active=0       cur-reqs-queued=0       period-reqs-queued=0    period-max-reqs-queued=0        period-req-duration=0.001328    period-req-queue-duration=0.000122      period-max-queue-duration=0.000122      cur-children=9  cur-children-active=0   period-children-active=1        period-queued-reqs-abandoned=0  malloc-bytes-master=3289320     malloc-bytes-first-child=3428584        event-id=322    duration=0.000000       action=server-stats

into the following output:

gmt=2002/09/18  21:29:31        local-time=2002/09/18   14:29:31        server-name=tutoriald   host-name=stood-children-active=5    period-queued-reqs-abandoned=0  malloc-bytes-master=4153944     malloc-bytes-first-child=8036952        event-id=483    duration=0.000000       action=server-stats

As you can see, a bunch of characters are missing between ``host-name=sto''
and ``od-children-active=5''. I can think of only one explanation: perhaps
fwrite() in io.c:io_write() returns an incorrect count of bytes written when a
signal occurs?

This is with ruby 1.7.3 (2002-09-17) [sparc-solaris2.8].

Thanks,
-- 
Jos Backus                       _/  _/_/_/      Sunnyvale, CA
                                _/  _/   _/
                               _/  _/_/_/
                          _/  _/  _/    _/
jos at catnook.com        _/_/   _/_/_/          require 'std/disclaimer'