From 2c7060c40adf720b685bd6adc25b3defa24eb7b6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 May 2009 23:52:55 +0000 Subject: [PATCH] *** empty log message *** --- src/rxvtd.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rxvtd.C b/src/rxvtd.C index eed9b0ee..f3307c3b 100644 --- a/src/rxvtd.C +++ b/src/rxvtd.C @@ -278,10 +278,10 @@ main (int argc, const char *const *argv) } #if ENABLE_MLOCK - // Optionally preform a mlockall so this process does not get swapped out. - if (opt_lock && pid == 0) - if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1) - perror("unable to lock into ram"); + // Optionally perform an mlockall so this process does not get swapped out. + if (opt_lock && !pid) + if (mlockall (MCL_CURRENT | MCL_FUTURE) < 0) + perror ("unable to lock into ram"); #endif if (opt_fork) -- 2.34.1