[#413] Should we check alloca ret val? — Michal Rokos <m.rokos@...>
Hi,
7 messages
2002/09/03
[#441] Patch to add a Module#const_missing method — JanArne.Petersen@... (Jan Arne Petersen)
Hi,
11 messages
2002/09/05
[#443] Re: Patch to add a Module#const_missing method
— matz@... (Yukihiro Matsumoto)
2002/09/06
Hi,
[#444] io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...>
I am encountering a problem similar to the one mentioned here,
19 messages
2002/09/06
[#453] Re: io_write()/fwrite() and EINTR on Solaris
— nobu.nokada@...
2002/09/08
Hi,
[#454] Re: io_write()/fwrite() and EINTR on Solaris
— matz@... (Yukihiro Matsumoto)
2002/09/09
Hi
[#469] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/09/09
On Mon, Sep 09, 2002 at 03:55:13PM +0900, Yukihiro Matsumoto wrote:
[#479] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/09/10
On Tue, Sep 10, 2002 at 01:04:10AM +0900, Jos Backus wrote:
[#492] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/09/21
On Wed, Sep 11, 2002 at 02:23:33AM +0900, Jos Backus wrote:
[#495] Re: io_write()/fwrite() and EINTR on Solaris
— nobu.nokada@...
2002/09/21
Hi,
[#496] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/09/21
Hello,
[#564] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/11/06
On Sun, Sep 22, 2002 at 04:24:31AM +0900, Jos Backus wrote:
[#566] Re: io_write()/fwrite() and EINTR on Solaris
— nobu.nokada@...
2002/11/07
Hi,
[#567] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/11/07
On Thu, Nov 07, 2002 at 01:43:03PM +0900, nobu.nokada@softhome.net wrote:
[#568] Re: io_write()/fwrite() and EINTR on Solaris
— nobu.nokada@...
2002/11/07
Hi,
[#569] Re: io_write()/fwrite() and EINTR on Solaris
— Jos Backus <jos@...>
2002/11/07
On Thu, Nov 07, 2002 at 03:49:51PM +0900, nobu.nokada@softhome.net wrote:
[#449] ruby.h, string.c — Michal Rokos <m.rokos@...>
Hello,
7 messages
2002/09/06
[#459] Parse.y — Michal Rokos <m.rokos@...>
Hi,
6 messages
2002/09/09
[#461] Related to [Memleak] in sprintf.c — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/09/09
[#508] can java applications invoke ruby scripts?? — "John Davis" <javaccnews@...>
I want to know if Java applications can invoke ruby scripts?? In other
8 messages
2002/09/26
Re: io_write()/fwrite() and EINTR on Solaris
From:
Jos Backus <jos@...>
Date:
2002-09-21 00:11:59 UTC
List:
ruby-core #492
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'