From owner-freebsd-questions Fri Mar 24 16:33: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns2.accesscom.com (ns2.accesscom.com [205.226.156.3]) by hub.freebsd.org (Postfix) with ESMTP id 3ED2837BC8A for ; Fri, 24 Mar 2000 16:33:05 -0800 (PST) (envelope-from sabrina@shell.accesscom.com) Received: from shell.accesscom.com (root@shell.accesscom.com [205.226.156.10]) by ns2.accesscom.com (8.9.3/8.9.3/Debian/GNU) with ESMTP id QAA25343; Fri, 24 Mar 2000 16:33:03 -0800 Received: (from sabrina@localhost) by shell.accesscom.com (8.9.3/8.9.3/Debian/GNU) id QAA03821; Fri, 24 Mar 2000 16:33:03 -0800 From: Sabrina Minshall Message-Id: <200003250033.QAA03821@shell.accesscom.com> Subject: daemon + fork To: questions@freebsd.org Date: Fri, 24 Mar 2000 16:33:03 -0800 (PST) Cc: sabrina@accesscom.com X-Mailer: ELM [version 2.4ME+ PL65 (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 Guys, here's the problem. I've a daemon which waits for incoming connections on a socket. When a connection request comes in, it allocates memory for the request and forks a child to handle the request - passing in the request structure the daemon allocated. Can the daemon and the child modify the request structure at the same time? The child updates the request structure and then exits. How will the parent know when the child is done? If theres sample code to look at I'd appreciate a pointer. Thanks, Sabrina To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message