Skip to content
Snippets Groups Projects
Commit fd288fda authored by Jan M Michalski's avatar Jan M Michalski
Browse files

rpmem: lock file prior to unlink

Ref: pmem/issues#833
parent 435e501f
No related branches found
No related tags found
No related merge requests found
/*
* 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment