1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Remove mlockall() form dmeventd

As the header file <sys/mman.h> was not included in dmeventd.c
thus missed definition of MCL_CURRENT so this patch only makes
it obvious we were not locking memory here.

This patch has no functional change.
Later part of this patch set handles mlockall() via memlock_inc_daemon().
This commit is contained in:
Zdenek Kabelac 2010-03-30 14:35:40 +00:00
parent 1dee5eb625
commit dee5782e76

View File

@ -1725,11 +1725,6 @@ int main(int argc, char *argv[])
pthread_mutex_init(&_global_mutex, NULL);
#ifdef MCL_CURRENT
if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1)
exit(EXIT_FAILURE);
#endif
if ((ret = _open_fifos(&fifos)))
exit(EXIT_FIFO_FAILURE);
@ -1749,9 +1744,6 @@ int main(int argc, char *argv[])
_exit_dm_lib();
#ifdef MCL_CURRENT
munlockall();
#endif
pthread_mutex_destroy(&_global_mutex);
syslog(LOG_NOTICE, "dmeventd shutting down.");