This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _exit() missing WSACleanup() call?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 06 August 2002 09:53, Corinna Vinschen wrote:
> I'm really trying hard to get a mmap() implementation which is as U*X
> like as possible.  A simple testcase could help a lot.

Here's some code to test for you. It does not yet show my mmap() problem, but 
perhaps another resource leak -- or is it that I'm overlooking something?

After running it for 2 or so minutes on Win98SE the main() can no longer 
connect to the listening process and strerror() says 'No buffer space 
available'. Run it with './testcase log' and wait until it prints to stderr.

This same code ran continuously for a long time on FreeBSD, leaving a whole 
lot of sockets in the TIME_WAIT state for some time, but without obvious 
problems.

When I find time again I'll continue to try to reproduce the real problem. 
Perhaps you want access to my CVS repository where also the original project 
which causes the trouble is available -- mail me privately in that case.

[fork2]
> No, I didn't know that stuff.  Did you try to change your implementation
> so that you use fork() and really wait() for the children?

This did not make a difference. Since I can not yet reproduce the problem, it 
is really difficult to tell if it _should_ make a difference :)

> Corinna

Juergen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9T/bHtCKWJo++MqgRAhBZAJ4n9xOEU6Wvu69DRKoariaSAhQp4wCgxcea
bQwL4jj+AVmlcfVg3nG+Cxk=
=kb59
-----END PGP SIGNATURE-----

Attachment: testcase.tgz
Description: application/tgz

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]