From 7b51b729cd704f0ae7d3b0af2e5818b792e58a8f Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Fri, 10 Aug 2007 13:26:48 +0000 Subject: [PATCH] [199561][efs][dstore] Eclipse hangs when manipulating empty file --- .../internal/services/dstore/files/DStoreInputStream.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/src/org/eclipse/rse/internal/services/dstore/files/DStoreInputStream.java b/rse/plugins/org.eclipse.rse.services.dstore/src/org/eclipse/rse/internal/services/dstore/files/DStoreInputStream.java index 24c6fa23363..eb316f8db24 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/src/org/eclipse/rse/internal/services/dstore/files/DStoreInputStream.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/src/org/eclipse/rse/internal/services/dstore/files/DStoreInputStream.java @@ -1,5 +1,5 @@ /******************************************************************************** - * Copyright (c) 2007 IBM Corporation. All rights reserved. + * Copyright (c) 2007 IBM Corporation and others. All rights reserved. * This program and the accompanying materials are made available under the terms * of the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -9,7 +9,7 @@ * component that contains this file: David McKnight. * * Contributors: - * {Name} (company) - description of contribution. + * Martin Oberhuber (Wind River) - [199561][efs][dstore] Eclipse hangs when manipulating empty file ********************************************************************************/ package org.eclipse.rse.internal.services.dstore.files; @@ -101,7 +101,7 @@ public class DStoreInputStream extends InputStream { if (_localFile != null) { - while (_localFile.length() == 0) + while (_localFile.length() == 0 && !_cmdStatus.getValue().equals("done")) //$NON-NLS-1$) { try {