Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7095
Modified Files: Tag: devel_0_38 s_inter.c Log Message: fixing setuid bug
Index: s_inter.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_inter.c,v retrieving revision 1.5.4.5 retrieving revision 1.5.4.6 diff -C2 -d -r1.5.4.5 -r1.5.4.6 *** s_inter.c 25 Dec 2004 17:21:15 -0000 1.5.4.5 --- s_inter.c 9 Jan 2005 11:42:47 -0000 1.5.4.6 *************** *** 284,295 ****
#ifdef _POSIX_MEMLOCK ! /* tb: force memlock to physical memory { */ struct rlimit mlock_limit; mlock_limit.rlim_cur=0; ! mlock_limit.rlim_max=0; setrlimit(RLIMIT_MEMLOCK,&mlock_limit); ! /* } tb */
! if (mlockall(MCL_FUTURE) != -1) fprintf(stderr, "memory locking enabled.\n"); #endif --- 284,295 ----
#ifdef _POSIX_MEMLOCK ! /* tb: force memlock to physical memory { */ struct rlimit mlock_limit; mlock_limit.rlim_cur=0; ! mlock_limit.rlim_max=100; setrlimit(RLIMIT_MEMLOCK,&mlock_limit); ! /* } tb */
! if (mlockall(MCL_FUTURE) != -1) fprintf(stderr, "memory locking enabled.\n"); #endif