Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2009-03-10 07:37:51 -0400
committerAnton Leherbauer2009-03-10 07:37:51 -0400
commit2e65ed8af0d188edfb2cdb63fcf2662282ea870a (patch)
treef730740b9cafec07c3c69515f55eada4803edc45 /core/org.eclipse.cdt.core.win32/library
parentdf7a426a13067fb490ddbd76a1fa886f6dc343e1 (diff)
downloadorg.eclipse.cdt-2e65ed8af0d188edfb2cdb63fcf2662282ea870a.tar.gz
org.eclipse.cdt-2e65ed8af0d188edfb2cdb63fcf2662282ea870a.tar.xz
org.eclipse.cdt-2e65ed8af0d188edfb2cdb63fcf2662282ea870a.zip
Bug 265598 - EOF does not work in console
Diffstat (limited to 'core/org.eclipse.cdt.core.win32/library')
-rw-r--r--core/org.eclipse.cdt.core.win32/library/iostream.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/iostream.c b/core/org.eclipse.cdt.core.win32/library/iostream.c
index 3b19181453..92637ec84d 100644
--- a/core/org.eclipse.cdt.core.win32/library/iostream.c
+++ b/core/org.eclipse.cdt.core.win32/library/iostream.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2002, 2007 QNX Software Systems and others.
+ * Copyright (c) 2002, 2009 QNX Software Systems 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
@@ -161,7 +161,6 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_SpawnerInputStream_clo
_stprintf(buffer, _T("Close %i\n"), fd);
OutputDebugStringW(buffer);
#endif
- DisconnectNamedPipe((HANDLE)fd);
rc = (CloseHandle((HANDLE)fd) ? 0 : -1);
#ifdef DEBUG_MONITOR
_stprintf(buffer, _T("Closed %i\n"), fd);
@@ -240,7 +239,7 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_SpawnerOutputStream_cl
_stprintf(buffer, _T("Close %i\n"), fd);
OutputDebugStringW(buffer);
#endif
- DisconnectNamedPipe((HANDLE)fd);
+ FlushFileBuffers((HANDLE)fd);
rc = (CloseHandle((HANDLE)fd) ? 0 : -1);
#ifdef DEBUG_MONITOR
_stprintf(buffer, _T("Closed %i\n"), fd);

Back to the top