[kaffe] CVS kaffe (robilad): Build fix for eclipse: Spawn a VMProcess in given directory

Kaffe CVS cvs-commits at kaffe.org
Sat Dec 10 12:05:00 PST 2005


PatchSet 6994 
Date: 2005/12/10 19:55:32
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Build fix for eclipse: Spawn a VMProcess in given directory

2005-12-10  Dalibor Topic  <robilad at kaffe.org>

        * libraries/clib/native/java_lang_VMProcess.c
        (Java_java_lang_VMProcess_nativeSpawn): Spawn in the correct
        dir, if one is given.

        Reported by:  Alejandro Mery  <amery at geeks.cl>

Members: 
	ChangeLog:1.4515->1.4516 
	libraries/clib/native/java_lang_VMProcess.c:1.2->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4515 kaffe/ChangeLog:1.4516
--- kaffe/ChangeLog:1.4515	Sat Dec 10 19:38:16 2005
+++ kaffe/ChangeLog	Sat Dec 10 19:55:32 2005
@@ -1,3 +1,11 @@
+2005-12-10  Dalibor Topic  <robilad at kaffe.org>
+
+	* libraries/clib/native/java_lang_VMProcess.c
+	(Java_java_lang_VMProcess_nativeSpawn): Spawn in the correct
+	dir, if one is given.
+
+        Reported by:  Alejandro Mery  <amery at geeks.cl>
+
 2005-12-10  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* test/regression/TestSerialFields.java,
Index: kaffe/libraries/clib/native/java_lang_VMProcess.c
diff -u kaffe/libraries/clib/native/java_lang_VMProcess.c:1.2 kaffe/libraries/clib/native/java_lang_VMProcess.c:1.3
--- kaffe/libraries/clib/native/java_lang_VMProcess.c:1.2	Fri Nov 25 18:12:51 2005
+++ kaffe/libraries/clib/native/java_lang_VMProcess.c	Sat Dec 10 19:55:35 2005
@@ -216,10 +216,9 @@
     {
       if ((dir = copy_string (env, dirString)) == NULL)
 	goto done;
-      strings[num_strings++] = dir;
     }
 
-  err = KFORKEXEC(strings, NULL, fds, &pid, strings[0]);
+  err = KFORKEXEC(strings, NULL, fds, &pid, dir);
   if (err != 0)
     {
       TARGET_NATIVE_MISC_FORMAT_STRING1 (errbuf,




More information about the kaffe mailing list