Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public Error available(MutableInt available, boolean checkDeadline) {
return null;
}

JniResult result = LocalSocketManager.available(mLocalSocketRunConfig.getLogTitle() + " (client)", mLocalSocketRunConfig.getFD());
JniResult result = LocalSocketManager.available(mLocalSocketRunConfig.getLogTitle() + " (client)", mFD);
if (result == null || result.retval != 0) {
return LocalSocketErrno.ERRNO_CHECK_AVAILABLE_DATA_ON_CLIENT_SOCKET_FAILED.getError(
mLocalSocketRunConfig.getTitle(), JniResult.getErrorString(result));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public static void processAmClient(@NonNull LocalSocketManager localSocketManage
if (error != null) {
sendResultToClient(localSocketManager, clientSocket, 1, stdout.toString(),
!stderr.toString().isEmpty() ? stderr + "\n\n" + error : error.toString());
return;
}

sendResultToClient(localSocketManager, clientSocket, 0, stdout.toString(), stderr.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ public void killIfExecuting(@NonNull final Context context, boolean processResul
}
}

if (mExecutionCommand.isExecuting()) {
kill();
}
// Send SIGKILL to process unconditionally since setStateFailed() sets state to FAILED and
// isExecuting() will always be false after that
kill();
}

/**
Expand Down