[PD-cvs] pd/src s_inter.c,1.5.4.6,1.5.4.7
Tim Blechmann
timblech at users.sourceforge.net
Sun Jan 9 14:03:04 CET 2005
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30670
Modified Files:
Tag: devel_0_38
s_inter.c
Log Message:
hard memory locking if we are root
Index: s_inter.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_inter.c,v
retrieving revision 1.5.4.6
retrieving revision 1.5.4.7
diff -C2 -d -r1.5.4.6 -r1.5.4.7
*** s_inter.c 9 Jan 2005 11:42:47 -0000 1.5.4.6
--- s_inter.c 9 Jan 2005 13:03:01 -0000 1.5.4.7
***************
*** 287,291 ****
struct rlimit mlock_limit;
mlock_limit.rlim_cur=0;
! mlock_limit.rlim_max=100;
setrlimit(RLIMIT_MEMLOCK,&mlock_limit);
/* } tb */
--- 287,295 ----
struct rlimit mlock_limit;
mlock_limit.rlim_cur=0;
! /* tb: only if we are really root we can set the hard limit */
! if (getuid())
! mlock_limit.rlim_max=100;
! else
! mlock_limit.rlim_max=0;
setrlimit(RLIMIT_MEMLOCK,&mlock_limit);
/* } tb */
More information about the Pd-cvs
mailing list