Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/lang/natPosixProcess.cc

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    3131#include <java/lang/NullPointerException.h>
    3232#include <java/lang/Thread.h>
     33
    3334#include <java/io/FileDescriptor.h>
    3435#include <java/io/FileInputStream.h>
     
    8889
    8990static void
    90 cleanup (char **args, char **env)
     91cleanup (char **args, char **env)
    9192{
    9293  if (args != NULL)
     
    102103      _Jv_Free (env);
    103104    }
     105
     106
    104107}
    105108
     
    117120void
    118121java::lang::ConcreteProcess::startProcess (jstringArray progarray,
    119                                            jstringArray envp)
     122                                           jstringArray envp,
     123                                           java::io::File *dir)
    120124{
    121125  using namespace java::io;
     
    126130  char **args = NULL;
    127131  char **env = NULL;
     132
    128133  int inp[2], outp[2], errp[2], msgp[2];
    129134  inp[0] = -1;
     
    169174        }
    170175
     176
     177
     178
     179
     180
    171181      // Create pipes for I/O.  MSGP is for communicating exec()
    172182      // status.
     
    189199      if (pid == 0)
    190200        {
    191           // Child process, so remap descriptors and exec.
     201          // Child process, so remap descriptors and exec.
    192202
    193203          if (envp)
     
    230240          close (outp[1]);
    231241          close (msgp[0]);
     242
     243
     244
     245
     246
     247
     248
     249
     250
     251
     252
    232253
    233254          execvp (args[0], args);
     
    305326
    306327  myclose (msgp[0]);
    307   cleanup (args, env);
     328  cleanup (args, env);
    308329
    309330  if (exc != NULL)
Note: See TracChangeset for help on using the changeset viewer.