- 
    Bug 
- 
    Resolution: Not an Issue
- 
     P4 P4
- 
    None
- 
    1.4.1
- 
        x86
- 
        windows_nt
                    RunTime.exec() hang up in windows platform when exec kinit command "kinit  -J-Djava.security.krb5.kdc=infinityzero.sfbay.sun.com  -J-Djava.security.krb5.realm=JAVASOFT3.ENG.SUN.COM -F -c FILE:mykrb5cc dummy  bogus ". when remove "-F" flag, everything works fine.
Platform: Win2000, Windows-NT (I just tried on these two platforms)
JDK: Hopper1.4.1-b13, Hopper1.4.1-b08, (maybe all hopper builds have the same probelm)
How to produce:
1. set JAVA_HOME to jdk build which has kinit
2. untar attached test.tar
3. javac TestCommand.java
4. java TestCommand
you should see the hangup.
###@###.### 2002-06-03
If changing the order of InputStream and error inputStream in the TestCommand.java like follows, hangup disappears.
      	    
while (( c=err.read() ) != -1 ) {
out.write((char)c) ;
}
err.close();
out.println("close err inputstream");
while (( c=in.read() ) != -1 ) {
out.write((char)c) ;
}
in.close();
out.println("close inputstream");
###@###.### 2002-06-03
            
Platform: Win2000, Windows-NT (I just tried on these two platforms)
JDK: Hopper1.4.1-b13, Hopper1.4.1-b08, (maybe all hopper builds have the same probelm)
How to produce:
1. set JAVA_HOME to jdk build which has kinit
2. untar attached test.tar
3. javac TestCommand.java
4. java TestCommand
you should see the hangup.
###@###.### 2002-06-03
If changing the order of InputStream and error inputStream in the TestCommand.java like follows, hangup disappears.
while (( c=err.read() ) != -1 ) {
out.write((char)c) ;
}
err.close();
out.println("close err inputstream");
while (( c=in.read() ) != -1 ) {
out.write((char)c) ;
}
in.close();
out.println("close inputstream");
###@###.### 2002-06-03