Revision 888a6bc6 os-posix.c
b/os-posix.c | ||
---|---|---|
363 | 363 |
{ |
364 | 364 |
return daemonize; |
365 | 365 |
} |
366 |
|
|
367 |
int os_mlock(void) |
|
368 |
{ |
|
369 |
int ret = 0; |
|
370 |
|
|
371 |
ret = mlockall(MCL_CURRENT | MCL_FUTURE); |
|
372 |
if (ret < 0) { |
|
373 |
perror("mlockall"); |
|
374 |
} |
|
375 |
|
|
376 |
return ret; |
|
377 |
} |
Also available in: Unified diff