[#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: [MemLeak] in dln.c

From: Michal Rokos <m.rokos@...>
Date: 2002-09-03 08:47:41 UTC
List: ruby-core #408
Hi Michal,

	you have just introduced MEM leak, dude! :-)
	
On Tue, Sep 03, 2002 at 01:09:11AM +0900, Michal Rokos wrote:
> +#define init_funcname(buf, file) do {\
> +    int len = init_funcname_len(buf, file);\
> +    char *tmp = ALLOCA_N(char, len+1);\
> +    if (!tmp) rb_memerror();\
-	if (!tmp) rb_memerror();\
+	if (!tmp) {\
+	    free(*buf);\
+	    rb_memerror();\
+	}
> +    strcpy(tmp, *buf);\
> +    free(*buf);\
> +    *buf = tmp;\
> +} while (0)

	All shame goes to you (and me)...

	Best regards

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

In This Thread