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

From: Stefano Novello <Stefano-N_at_parc-technologies.com>
Date: Wed 07 Mar 2001 02:11:53 PM GMT
Message-ID: <0B9686DD2E83D411B67200508B9A9DA205AD6C@LON-SRV2>
NT 5.1.1 version
if there is no stdin when you call ec_init() eclipse terminates the
process within the call to ec_init(),
but just before the process terminates

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

appears on stdout.

Proposed fix:
Tasks like opening toplevel_input could be local to the initialization
of the top level interpeter which
would be one of the things you would trigger from eclipse.exe and
tkeclipse only, rather than in eclipse.dll
Eclipse programs would not generally be able to rely on the existence of
the toplevel streams. Which in an ideal
world would not be even globally accessible.

Current work around:
is to set the eclipse option to use memory queues for stdin,stdout and
stderr.
Received on Wed Mar 07 14:12:48 2001

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