diff --git a/src/tools/rpmemd/rpmemd_db.c b/src/tools/rpmemd/rpmemd_db.c index edd5e6401419de39a7d9a6b06a8c6d639173cdd9..ed0fbbc3899f66e4d7630741fd4eae77bc0b3d61 100644 --- a/src/tools/rpmemd/rpmemd_db.c +++ b/src/tools/rpmemd/rpmemd_db.c @@ -1,5 +1,5 @@ /* - * Copyright 2016-2018, Intel Corporation + * Copyright 2016-2019, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -383,7 +383,7 @@ rm_poolset_cb(struct part_file *pf, void *arg) return -1; } - int ret = util_unlink(pf->part->path); + int ret = util_unlink_flock(pf->part->path); if (!args->force && ret) { RPMEMD_LOG(ERR, "!unlink -- '%s'", pf->part->path); args->ret = ret;