Skip to content

Add accessor for included pty instance #1109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/org.eclipse.cdt.core.native/about.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014, 2024 Contributors to the Eclipse Foundation
# Copyright (c) 2014, 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand All @@ -24,7 +24,7 @@ blurb=C/C++ Development Tooling Native Utilities\n\
Version: {featureVersion}\n\
Build id: {0}\n\
\n\
Copyright (c) 2014, 2024 Contributors to the Eclipse Foundation
Copyright (c) 2014, 2025 Contributors to the Eclipse Foundation
\n\
See the NOTICE file(s) distributed with this work for additional\n\
information regarding copyright ownership.\n\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,14 @@ public boolean isRunning() {
return (raise(pid, SIG_NOOP) == 0);
}

/**
* @since 6.3
* @return the current pty instance for this spawner
*/
public PTY pty() {
return fPty;
}

private void exec(String[] cmdarray, String[] envp, String dirpath) throws IOException {
String command = cmdarray[0];
SecurityManager s = System.getSecurityManager();
Expand Down
Loading