On Mon, Sep 05, 2011 at 09:17:29AM +0000, Emmanuel Dreyfus wrote: > On Mon, Sep 05, 2011 at 10:46:50AM +0200, Manuel Bouyer wrote: > > You have mlock(2) for this. I think ntpd uses it, you can have a look here. > > Of course you don't want to mlock a big process ... > > Do you suggest to use mlock(NULL, (size_t)-1) ?
this probably won't work. Look at how ntpd uses it ... -- Manuel Bouyer <[email protected]> NetBSD: 26 ans d'experience feront toujours la difference --
