Keith M Wesolowski wrote:
> 
> On Wed, Feb 08, 2006 at 02:30:38AM +0100, Roland Mainz wrote:
> 
> > Here comes the requested (mini-) proposal to create a "ksh93
> > integration" project:
> 
> This project should also specifically address the use of ksh88 by libc
> (wordexp(3C)) and any other hard dependencies on ksh88 identified
> within OpenSolaris, as these dependencies must be removed to
> facilitate compatible open source distributions.

Umpf... we really need a mailinglist...
... this has already been discussed with various proposed solutions,
including:
- dlload() of libshell.so (which may save the whole mess with fork()&co.
and therefore avoid the related overhead) ... this is also my preferred
solution... :-)
- dlload() of libast which already provides a version of |wordexp()|
- Usage of the libast |wordexp()| code in libc directly

> If you amend your proposal to that effect, I will second it.

Yes, that would be done as part of that project, too. I would prefer a
2-stage fix for this:
1. Use dlload() of libshell.so in a fork()'ed child process - this has
the advantage that it doesn't need much work, preserves MT-safeness,
abuses the child process to do the garbage collection when it terminates
(yes, I know... that's ugly) and also allows easy testing for
regressions...
2. Work-out a version which no longer needs the |fork()| - which means
there needs to be a mutex and somehow a clever way to do the garbage
collection (e.g. freeing resources like memory etc.) in a way which
doesn't cause a performance it when being done in a tight loop.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to