diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-08-22 11:34:32 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-08-23 06:55:35 +0200 |
commit | e95568b78ddead0173339ca98df6cd92131ceb62 (patch) | |
tree | 3860dc256f0c80a4764ef79bb1fa6fa3ec814392 /src/irc.cpp | |
parent | fedd060d819e671388e9996f55af7a70f270f0b9 (diff) |
Handle locked pages more robustly (Fixes issue #1462)
Memory locks do not stack, that is, pages which have been locked several times by calls to mlock()
will be unlocked by a single call to munlock(). This can result in keying material ending up in swap when
those functions are used naively. In this commit a class "LockedPageManager" is added
that simulates stacking memory locks by keeping a counter per page.
Diffstat (limited to 'src/irc.cpp')
0 files changed, 0 insertions, 0 deletions