More timely abort of find jobs if the result pager gets aborted
This commit is contained in:
@ -9855,6 +9855,9 @@ int Xorriso_findx(struct XorrisO *xorriso, struct FindjoB *job,
|
||||
char *name= NULL, *path= NULL, *sfe= NULL;
|
||||
char *abs_dir_path_data= NULL, *abs_path= NULL;
|
||||
|
||||
if(xorriso->request_to_abort)
|
||||
{ret= 0; goto ex;}
|
||||
|
||||
sfe= malloc(5*SfileadrL);
|
||||
name= malloc(SfileadrL);
|
||||
path= malloc(SfileadrL);
|
||||
@ -9901,9 +9904,9 @@ int Xorriso_findx(struct XorrisO *xorriso, struct FindjoB *job,
|
||||
if(ret>0) {
|
||||
ret= Xorriso_findx_action(xorriso, job, abs_dir_path, dir_path, depth,
|
||||
flag&1);
|
||||
if(xorriso->request_to_abort)
|
||||
{ret= 0; goto ex;}
|
||||
if(ret<=0) {
|
||||
if(xorriso->request_to_abort)
|
||||
goto ex;
|
||||
if(Xorriso_eval_problem_status(xorriso, ret, 1|2)<0)
|
||||
goto ex;
|
||||
}
|
||||
@ -9963,9 +9966,9 @@ int Xorriso_findx(struct XorrisO *xorriso, struct FindjoB *job,
|
||||
goto ex;
|
||||
if(ret>0) {
|
||||
ret= Xorriso_findx_action(xorriso, job, abs_path, path, depth, flag&1);
|
||||
if(xorriso->request_to_abort)
|
||||
{ret= 0; goto ex;}
|
||||
if(ret<=0) {
|
||||
if(xorriso->request_to_abort)
|
||||
goto ex;
|
||||
if(Xorriso_eval_problem_status(xorriso, ret, 1|2)<0)
|
||||
goto ex;
|
||||
}
|
||||
|
Reference in New Issue
Block a user