feat: replace quicksort with simplified recursive version and fix partition logic

This commit is contained in:
2026-01-29 05:57:52 +00:00
parent dccd79c05a
commit 608b69e547
4 changed files with 102 additions and 208 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ static char *python_execute_execute(tool_t *self, struct json_object *args) {
close(fd);
char cmd[4096];
snprintf(cmd, sizeof(cmd), "python3 '%s' && rm '%s' || { rm '%s'; exit 1; }", tmp_file, tmp_file, tmp_file);
snprintf(cmd, sizeof(cmd), "python3 '%s'; ret=$?; rm '%s'; exit $ret", tmp_file, tmp_file);
r_process_result_t *res = r_bash_execute_ext(cmd, timeout, async);