Date: Tue, 22 Dec 1998 14:36:40 +1300 (NZDT) From: Jonathan Chen <jonc@pinnacle.co.nz> To: Michael Ryan <mike@NetworX.ie> Cc: FreeBSD Support <questions@FreeBSD.ORG> Subject: Re: Mystery with pipe(), fork() and dup() Message-ID: <Pine.SCO.3.96.981222143553.2659B-100000@kiwi.pinnacle.co.nz> In-Reply-To: <ECS9812220136A@NetworX.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 22 Dec 1998, Michael Ryan wrote: > However, if I change the line which reads > if (pid == 0) > to read > if (pid) > it never works! The stdio for 'more' seems to get screwed up. > Can anybody explain why it doesn't work? Well, for one thing if (pid) really means: if (pid != 0) ------------------------------------------------------------------- Jonathan Chen | -insert-witty-quip-here- ------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SCO.3.96.981222143553.2659B-100000>