ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtd.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtd.C (file contents):
Revision 1.47 by root, Mon Feb 2 22:38:40 2009 UTC vs.
Revision 1.48 by root, Fri May 8 23:52:55 2009 UTC

276 { 276 {
277 pid = fork (); 277 pid = fork ();
278 } 278 }
279 279
280#if ENABLE_MLOCK 280#if ENABLE_MLOCK
281 // Optionally preform a mlockall so this process does not get swapped out. 281 // Optionally perform an mlockall so this process does not get swapped out.
282 if (opt_lock && pid == 0) 282 if (opt_lock && !pid)
283 if (mlockall(MCL_CURRENT | MCL_FUTURE) == -1) 283 if (mlockall (MCL_CURRENT | MCL_FUTURE) < 0)
284 perror("unable to lock into ram"); 284 perror ("unable to lock into ram");
285#endif 285#endif
286 286
287 if (opt_fork) 287 if (opt_fork)
288 { 288 {
289 if (pid < 0) 289 if (pid < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines