From: root Date: Fri, 8 May 2009 23:52:55 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=2c7060c40adf720b685bd6adc25b3defa24eb7b6;p=dana%2Furxvt.git *** empty log message *** --- 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)