1
0
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:
Zdenek Kabelac 2010-12-20 14:08:46 +00:00
parent e6f0290d9f
commit b5d23f1591
2 changed files with 3 additions and 1 deletions

View File

@ -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().

View File

@ -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)