[#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:

Re: [Add-to-fix] String.c

From: Michal Rokos <m.rokos@...>
Date: 2002-09-13 08:34:54 UTC
List: ruby-core #485
Hello,

	I commited that. (I dropped these 2:
	
On Fri, Sep 13, 2002 at 09:31:26AM +0900, Yukihiro Matsumoto wrote:
> |@@ -68,11 +68,11 @@ str_new(klass, ptr, len)
> |     RSTRING(str)->ptr = ALLOC_N(char,len+1);
> |     if (ptr) {
> | 	memcpy(RSTRING(str)->ptr, ptr, len);
> |+	RSTRING(str)->ptr[len] = '\0';
> |     }
> |     else {
> |-	MEMZERO(RSTRING(str)->ptr, char, len);
> |+	MEMZERO(RSTRING(str)->ptr, char, len+1);
> |     }
> |-    RSTRING(str)->ptr[len] = '\0';
> |     return str;
> | }
> 
> |@@ -489,10 +491,18 @@ VALUE
> | rb_str_dup_frozen(str)
> |     VALUE str;
> | {
> |+#if 0
> |+    /*
> |+     * Question:
> |+     * What is the str is subseq of share
> |+     * (str->len < str->aux.shared->len)
> |+     * ?
> |+     */
> |     if (FL_TEST(str, ELTS_SHARED)) {
> | 	OBJ_FREEZE(RSTRING(str)->aux.shared);
> | 	return RSTRING(str)->aux.shared;
> |     }
> |+#endif
> |     if (OBJ_FROZEN(str)) return str;
> |     str = rb_str_dup(str);
> |     OBJ_FREEZE(str);

	)

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michal Rokos                         Czech Technical University, Prague
e-mail: m.rokos@sh.cvut.cz    icq: 36118339     jabber: majkl@jabber.cz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

In This Thread