@ -18,13 +18,13 @@ public abstract class Process {
protected final int pid ;
protected final int pid ;
protected final InputStream inputStream ;
protected final InputStream inputStream ;
protected final OutputStream outputStream ;
protected final OutputStream outputStream ;
//protected final InputStream errorStream;
protected final InputStream errorStream ;
public Process ( int pid , FileDescriptor in , FileDescriptor out , FileDescriptor err ) {
public Process ( int pid , FileDescriptor in , FileDescriptor out , FileDescriptor err ) {
this . pid = pid ;
this . pid = pid ;
this . inputStream = new ProcessInputStream ( in ) ;
this . inputStream = new ProcessInputStream ( in ) ;
this . outputStream = new ProcessOutputStream ( out ) ;
this . outputStream = new ProcessOutputStream ( out ) ;
//this.errorStream = new ProcessInputStream(err); // causes too many case splits for now
this . errorStream = new ProcessInputStream ( err ) ;
}
}
public int exitValue ( ) {
public int exitValue ( ) {
return InferUndefined . int_undefined ( ) ;
return InferUndefined . int_undefined ( ) ;
@ -49,10 +49,9 @@ public abstract class Process {
try {
try {
outputStream . close ( ) ;
outputStream . close ( ) ;
} catch ( IOException e ) { }
} catch ( IOException e ) { }
// causes too many case splits for now
try {
/ * try {
errorStream . close ( ) ;
errorStream . close ( ) ;
} catch ( IOException e ) { } * /
} catch ( IOException e ) { }
}
}
public Process destroyForcibly ( ) {
public Process destroyForcibly ( ) {