From owner-freebsd-questions Sat Feb 28 08:37:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA24184 for freebsd-questions-outgoing; Sat, 28 Feb 1998 08:37:00 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.kbsu.ru ([195.209.253.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA24177 for ; Sat, 28 Feb 1998 08:36:47 -0800 (PST) (envelope-from vel@ns.kbsu.ru) Received: (from vel@localhost) by ns.kbsu.ru (8.8.7/8.8.7) id TAA02990 for questions@freebsd.org; Sat, 28 Feb 1998 19:38:41 +0300 (MSK) From: Charlie Root Message-Id: <199802281638.TAA02990@ns.kbsu.ru> Subject: Programming questions To: questions@FreeBSD.ORG Date: Sat, 28 Feb 1998 19:38:41 +0300 (MSK) Reply-To: vel@ns.kbsu.ru X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello people ! I have some questions about programming under FreeBSD. 1. When my process receives signal, what is the simplest and fastest way to look for PID of process who sent me this signal ? 2. Is there any way to do accept() or another function like this without locking while waiting ? For example, my program wants to handle many network connections at a time without cloning via fork(). I know that some programs, such as ircd, do this. But how ? Pre-thanks. --- Eugene L. Vorokov, Kabardino-Balkarian State University, Russia vel@ns.kbsu.ru vel@hub.kbsu.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message