From owner-freebsd-questions Fri May 19 11:54:29 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA00150 for questions-outgoing; Fri, 19 May 1995 11:54:29 -0700 Received: from terra.stack.urc.tue.nl (terra.stack.urc.tue.nl [131.155.140.128]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id LAA00142 for ; Fri, 19 May 1995 11:54:26 -0700 Received: from zen.stack.urc.tue.nl (zen.stack.urc.tue.nl [131.155.140.130]) by terra.stack.urc.tue.nl (8.6.11) with ESMTP id UAA18462 for ; Fri, 19 May 1995 20:54:09 +0200 Received: (sven@localhost) by zen.stack.urc.tue.nl (8.6.10/8.6.4) id UAA24537 for freebsd-questions@freebsd.org; Fri, 19 May 1995 20:54:13 +0200 From: sven@stack.urc.tue.nl (Sven Berkvens) Message-Id: <199505191854.UAA24537@zen.stack.urc.tue.nl> Subject: accept(2) system call To: freebsd-questions@FreeBSD.org Date: Fri, 19 May 1995 20:54:11 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 939 Sender: questions-owner@FreeBSD.org Precedence: bulk Hi everybody... Just two small questions about accept(2) and listen(2). The manual page (or was it the include file) states that the second parameter supplied to listen(2) is the number of connections that the system will buffer if accept(2) is not already waiting for a connection. It also says that this number is silently limited to 5 pending connections. My question: is it possible to make this number higher via some obscure system call, or do I need to change the kernel? If the latter is the case, where in the kernel do I change what? And another question: if I have a process A, which opens a socket, binds to a port and does a listen(2) on the socket, and then I fork(2) into two processes, are both processes allowed to accept(2) anything from that socket? If so, is it random which process returns from accept(2) if they do an accept(2) at the same time? Thank you for your time, Sven Berkvens (sven@stack.urc.tue.nl)