OSDN Git Service

Sync libgcj with GNU Classpath 0.98.
[pf3gnuchains/gcc-fork.git] / libjava / classpath / native / jni / native-lib / cpproc.c
index bb34f6d..0c80703 100644 (file)
@@ -86,7 +86,8 @@ int cpproc_forkAndExec (char * const *commandLine, char * const * newEnviron,
 
       close_all_fds(local_fds, pipe_count * 2);
 
-      chdir(wd);
+      i = chdir(wd);
+      /* FIXME: Handle the return value */
       if (newEnviron == NULL)
        execvp(commandLine[0], commandLine);
       else