mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-01 14:41:10 +01:00
Added: Store pid in ExecutionCommand for sessions and tasks
This commit is contained in:
parent
bf10c72661
commit
b45ff8a407
7 changed files with 51 additions and 12 deletions
|
|
@ -126,6 +126,7 @@ public final class TerminalSession extends TerminalOutput {
|
|||
int[] processId = new int[1];
|
||||
mTerminalFileDescriptor = JNI.createSubprocess(mShellPath, mCwd, mArgs, mEnv, processId, rows, columns);
|
||||
mShellPid = processId[0];
|
||||
mClient.setTerminalShellPid(this, mShellPid);
|
||||
|
||||
final FileDescriptor terminalFileDescriptorWrapped = wrapFileDescriptor(mTerminalFileDescriptor, mClient);
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ public interface TerminalSessionClient {
|
|||
|
||||
void onTerminalCursorStateChange(boolean state);
|
||||
|
||||
void setTerminalShellPid(@NonNull TerminalSession session, int pid);
|
||||
|
||||
|
||||
|
||||
Integer getTerminalCursorStyle();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue