mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Add check for unlink errors
This commit is contained in:
parent
e6f0290d9f
commit
b5d23f1591
@ -1,5 +1,6 @@
|
||||
Version 2.02.79 -
|
||||
===================================
|
||||
Add check for unlink error result in remove_lockfile() (dmeventd).
|
||||
Use dm_free for dm_malloc-ed areas in _clog_ctr/_clog_dtr (cmirrord).
|
||||
Add checks for allocation errors in config node clonning.
|
||||
Fix error path if regex engine cannot be created in _build_matcher().
|
||||
|
@ -1642,7 +1642,8 @@ static int _set_oom_adj(int val)
|
||||
|
||||
static void remove_lockfile(void)
|
||||
{
|
||||
unlink(DMEVENTD_PIDFILE);
|
||||
if (unlink(DMEVENTD_PIDFILE))
|
||||
perror(DMEVENTD_PIDFILE ": unlink failed");
|
||||
}
|
||||
|
||||
static void _daemonize(void)
|
||||
|
Loading…
Reference in New Issue
Block a user