Api for managing files

This commit is contained in:
elvis
2022-03-18 20:49:28 +01:00
parent 6519b16e46
commit c8a685272f
6 changed files with 66 additions and 9 deletions

View File

@ -183,14 +183,13 @@ int parser(int len, char *command, queueT *queue, long fd_c, logT* logFileT, pth
removeFile(token2, queue, fd_c, logFileT, lock, waiting);
goto _parser_end;
}
goto _parser_cleanup; // nessun comando riconosciuto
_parser_end:
free(command);
return 0;
// se arrivo qui non ho riconosciuto il comando
_parser_cleanup:
free(command);
return -1;
_parser_end:
free(command);
return 0;
}