mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Fix used boolean
Due to a cherry-pick from the cdt_8_8, the boolean is not used as it should (the boolean does not exist in cdt_8_8). Since it's available in master, we should use it (or remove it) Change-Id: Id907e9408cfa7944677b65455bfa7840727ed313 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
parent
9f9c54764c
commit
8c96317ae8
1 changed files with 1 additions and 3 deletions
|
@ -15,7 +15,6 @@ import java.io.IOException;
|
|||
import java.io.OutputStream;
|
||||
|
||||
import org.eclipse.cdt.utils.pty.PTY.MasterFD;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
|
||||
public class PTYOutputStream extends OutputStream {
|
||||
|
||||
|
@ -85,8 +84,7 @@ public class PTYOutputStream extends OutputStream {
|
|||
public void close() throws IOException {
|
||||
if (master.getFD() == -1)
|
||||
return;
|
||||
// For non-windows platforms, send EOT instead of closing
|
||||
if (Platform.OS_WIN32.equals(Platform.getOS())) {
|
||||
if (!sendEotBeforeClose) {
|
||||
int status = close0(master.getFD());
|
||||
if (status == -1)
|
||||
throw new IOException("close error"); //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue