Solaris questions

Mike Boilen mgb at
Tue Aug 18 15:55:42 PDT 1998

Ahh..  I see.  Well then, here are two short bug fixes for the
Runtime.exec stuff.  I'm sorry they weren't generated using patch, since
I haven't quite figured out how to use it yet (and they are only about 4
lines).  There is still one bug left, which is that the file descriptors
opened to talk to the Process are never closed.  I'll send out a patch
as soon as I figure out where the file descriptors are actually supposed
to be closed.


This one patches libraries/clib/native/UNIXProcess.c to properly deal
with environment arguments.
change line 80, which reads:
    envi = (jstring)(*env)->GetObjectArrayElement(env, arge, i);
to read

And this patch makes exec(String) work correctly:
change libraries/javalib/java/lang/ line 50
which reads:
should read

On Tue, Aug 18, 1998 at 02:50:20PM -0300, Alexandre Oliva wrote:
> Mike Boilen <mgb at> writes:
> > 2) I noticed in the ChangeLog that UNIXProcess is no longer Solaris
> > compatible.
> That's not what is written in the ChangeLog.  It just says that
> UNIXProcess is does not provide the same set of native methods that
> Sun's implementation of Java does.
> -- 
> Alexandre Oliva
> mailto:oliva at mailto:aoliva at
> Universidade Estadual de Campinas, SP, Brasil

More information about the kaffe mailing list