From owner-freebsd-questions Tue Dec 22 02:11:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA25276 for freebsd-questions-outgoing; Tue, 22 Dec 1998 02:11:43 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from sam.networx.ie (ts06-091.dublin.indigo.ie [194.125.220.221]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA25265 for ; Tue, 22 Dec 1998 02:11:37 -0800 (PST) (envelope-from mike@NetworX.ie) Received: from mike (mike.NetworX.ie [194.9.12.33]) by sam.networx.ie (8.8.5/8.8.5) with SMTP id KAA00257; Tue, 22 Dec 1998 10:03:34 GMT X-Organisation: I.T. NetworX Ltd X-Business: Network Applications, Consultancy and Training X-Address: Stonebridge House, Shankill, Co. Dublin, Ireland X-Voice: +353-1-28-27-233 X-Fax: +353-1-28-27-230 Date: Tue, 22 Dec 1998 10:11:38 PST From: Michael Ryan Subject: RE: Mystery with pipe(), fork() and dup() To: John Saunders , Jonathan Chen , FreeBSD Support Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 22 Dec 1998 10:01:25 PST Michael Ryan wrote: > Therefore, grep is being piped into more. What I meant to say here is that grep is being piped into more regardless of whether the 'if' condition reads if (pid == 0) or if (pid) because of the logic concerning the dup calls. Bye, Mike mike@NetworX.ie www.NetworX.ie --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message