bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3.1.6 system() fails when at the ulimit of open files


From: Andreas Schwab
Subject: Re: 3.1.6 system() fails when at the ulimit of open files
Date: Thu, 15 Oct 2009 01:25:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Aharon Robbins <address@hidden> writes:

> Index: io.c
> ===================================================================
> RCS file: /d/mongo/cvsrep/gawk-stable/io.c,v
> retrieving revision 1.23
> diff -u -r1.23 io.c
> --- io.c      9 Jul 2009 19:54:38 -0000       1.23
> +++ io.c      14 Oct 2009 21:24:12 -0000
> @@ -740,6 +740,7 @@
>                                       else
>  #endif
>                                               rp->fp = fdopen(fd, (const char 
> *) mode);
> +                                     os_close_on_exec(fileno(rp->fp), str, 
> "file", "");
>                                       rp->mode = (const char *) mode;
>                                       /* don't leak file descriptors */
>                                       if (rp->fp == NULL)

If this is true then you crash above.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]