Skip site navigation (1) Skip section navigation (2)

Re: CVS HEAD

From: Patrick Samson <p_samson(at)yahoo(dot)com>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: CVS HEAD
Date: 2004-04-14 07:57:09
Message-ID: 20040414075709.81934.qmail@web60310.mail.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-cygwin
FYI, similar problem reported, 21 mar 2004, in
"How many fds can *you* open?"
http://cygwin.com/ml/cygwin/2004-03/msg00984.html

But cfg terminated the thread with rudeness. :(

--- Claudio Natoli <> wrote:
> 
> 
> > I'm seeing PostgreSQL 7.4.2's postmaster SEGV on
> startup under 1.5.9-1
> > too.  AFAICT, the stackdump indicates the problem
> is in the 
> > Cygwin DLL.
> 
> Well, that confirms things. 7.4.2 includes a
> repeated call to dup(0) to get
> an estimate for the max number of fds, whilst 7.4.1
> does not.
> 
> Code like that below should not SEGV, IMNSHO. Want
> me to push this over to
> the cygwin list?
> 
> 
> #include <errno.h>
> 
> int main(void)
> {
> 	int i;
> 	for (i = 0; ; i++)
> 	{
> 		printf("i = %d\n",i);
> 		if (dup(0) < 0)
> 		{
> 			printf("dup failed\n");
> 			return -1;
> 		}
> 	}
> 	return 0;
> }
> 



	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

In response to

pgsql-cygwin by date

Next:From: Meikel BispingDate: 2004-04-14 08:12:48
Subject: initdb failed due to missing textutils
Previous:From: Leeuw van der, TimDate: 2004-04-14 07:09:42
Subject: Re: shutting down ipc-daemon2?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group