EOF has to be checked

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13296 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-11-18 04:49:07 +00:00
1 parent c74f649f02
commit c1fcd050da
1 file changed
+1 -1
@@ -554,7 +554,7 @@ public abstract class ProcessTreeKiller {
as.seek(to64(p));
ByteArrayOutputStream buf = new ByteArrayOutputStream();
int ch,i=0;
while((ch=as.read())!=0) {
while((ch=as.read())>0) {
if((++i)%100==0 && LOGGER.isLoggable(FINEST))
LOGGER.finest("env["+n+"] is so far "+buf.toString());