From owner-freebsd-questions Wed Oct 25 8:12:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web9606.mail.yahoo.com (web9606.mail.yahoo.com [216.136.129.185]) by hub.freebsd.org (Postfix) with SMTP id 4DC9737B4CF for ; Wed, 25 Oct 2000 08:12:55 -0700 (PDT) Message-ID: <20001025151246.79629.qmail@web9606.mail.yahoo.com> Received: from [152.106.50.232] by web9606.mail.yahoo.com; Wed, 25 Oct 2000 08:12:46 PDT Date: Wed, 25 Oct 2000 08:12:46 -0700 (PDT) From: Yorick Hardy Subject: pipe through ghostscript causes stdin EAGAIN error To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A problem with a program I have written (which pipes information to ghostscript) prompted me to check the following cat | gs -sDEVICE=ppmraw - which gives the result from cat(as soon as a newline is entered) stdin:Resource temporarily unavailable (i.e. the error EAGAIN). I am using 4-STABLE, tcsh as the shell and gs6.01. Is ghostscript at fault? In my program, ensuring that all the standard descriptors(stdin,stdout and stderr) were closed before the exec, solved the problem. Is there some way that ghostscript can influence stdin when it only has access to stderr? Thank you for any suggestions. Yorick Hardy __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message