feat: replace quicksort with simplified recursive version and fix partition logic
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user