NetBSD-Bugs archive

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

Re: kern/44950: fcntl(F_MAXFD) returns bogus values

The following reply was made to PR kern/44950; it has been noted by GNATS.

From: (Christos Zoulas)
To: Julio Merino <>
Subject: Re: kern/44950: fcntl(F_MAXFD) returns bogus values
Date: Wed, 11 May 2011 10:43:00 -0400

 On May 11, 10:20am, (Julio Merino) wrote:
 -- Subject: Re: kern/44950: fcntl(F_MAXFD) returns bogus values
 | On 5/11/11 8:53 AM, Christos Zoulas wrote:
 | >
 | > Fix the test so that it runs a loop to close file descriptors from 0 to the
 | > descriptor soft limit
 | I think atf-run should be doing this before execing the test program, if 
 | only for consistency reasons.  You can open a PR against me if you agree 
 | so I don't forget!
 I am not sure which way to go there. Make the startup environment
 more complicated in the name of consistency, or have tests that
 care for a particular setup make sure that the setup they care
 about is consistent?
 I.e. a file descriptor test should make sure that descriptors are
 consistent, a resource limit test should do the same for resources,
 etc. Otherwise the startup can end up being expensive, plus it
 might be exercising the same functions that test is supposed to.
 And where does it stop? Do we reset process group, tty process
 groups, current working directory, environment, signal handlers,
 sysv ipc stuff, resource limits, timers, ...

Home | Main Index | Thread Index | Old Index