aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/sockets/accept_fd_leak
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Do a sweep and remove most WARNS=6 settingsKyle Evans2020-10-011-1/+0
| | | | | | | | | | | | | | | Repeating the default WARNS here makes it slightly more difficult to experiment with default WARNS changes, e.g. if we did something absolutely bananas and introduced a WARNS=7 and wanted to try lifting the default to that. Drop most of them; there is one in the blake2 kernel module, but I suspect it should be dropped -- the default WARNS in the rest of the build doesn't currently apply to kernel modules, and I haven't put too much thought into whether it makes sense to make it so. Notes: svn path=/head/; revision=366304
* Use _exit, not exit in forked processEnji Cooper2015-04-101-1/+1
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=281362
* - Parameterize out the number of accept/connect attemptsEnji Cooper2015-04-102-19/+35
| | | | | | | | | | | | | | | | | - Randomize the bind port to allow 2+ consecutive calls in < 10 minutes, and to also not fail if (for instance) there's a server already listening on port 8080 - Don't leak the listening socket / fds into the child process - Fix warnings: -- Remove argc/argv (-Wunused) -- Mark sig __unused (-Wunused) -- Mark quit static (-Wmissing-variable-declarations) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=281358
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-131-1/+1
| | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* Add another fd leak test for accept() I used to test the fix in 1.234 ofJohn Baldwin2007-04-021-1/+83
| | | | | | | sys/kern/uipc_syscall.c. Notes: svn path=/head/; revision=168273
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* Switch over to a different, more flexible test output protocol that'sNik Clayton2004-11-112-2/+14
| | | | | | | | | | | | | | | | | | | | | | | understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file. Notes: svn path=/head/; revision=137587
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Use errx() instead of perror()/exit() for conciseness.Robert Watson2004-10-231-44/+24
| | | | | | | Suggested by: ru (some time ago) Notes: svn path=/head/; revision=136843
* Modify accept_fd_leak regression test to generate "PASS" output, notRobert Watson2004-09-181-2/+3
| | | | | | | | just "FAIL" output, in order to make it consistent with other tests in the regression test tree. Notes: svn path=/head/; revision=135425
* Make sure to properly initialize 'size' to sizeof(sin) before passingRobert Watson2004-08-241-0/+1
| | | | | | | | it into accept(). Depending on the initial value in memory, it is otherwise possible to get EINVAL. Notes: svn path=/head/; revision=134238
* Add simple regression test to detect leakage of file descriptors whenRobert Watson2004-07-172-0/+142
accept() returns EAGAIN on a non-blocking listen socket. This is the tool I used to check that such a bug was resolved when merging accept() locking. Notes: svn path=/head/; revision=132295