Re: ec_init() called from a process that has no stdin file descriptor

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Wed 07 Mar 2001 02:32:01 PM GMT
Message-ID: <3AA64661.E4B08BF4@icparc.ic.ac.uk>
Stefano Novello wrote:
> 
> Current work around:
> is to set the eclipse option to use memory queues for stdin,stdout and
> stderr.

I think this is the correct solution, not just a workaround :-)


> Bad file descriptor in open(dup(0), read, toplevel_input)

toplevel_input is not the problem. The problem is that
the 'input' stream refers to stdin which doesn't exist.
I.e. read(input,X) would have equally caused an error.

The bug is that this should be detected earlier, and
'input' should be set to something other than stdin
if stdin doesn't exist (e.g. null).

-- Joachim
Received on Wed Mar 07 14:32:01 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:04 PM GMT GMT