diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty/PTY.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty/PTY.java index bc1354c32ce..4858bd11cc6 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty/PTY.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/pty/PTY.java @@ -25,6 +25,7 @@ public class PTY { if (hasPTY) { slave= forkpty(); } + if (slave == null) { throw new IOException("Can not create pty"); }