[pulseaudio-commits] r2372 - /branches/glitch-free/src/daemon/main.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue May 6 14:12:39 PDT 2008
Author: lennart
Date: Tue May 6 23:12:39 2008
New Revision: 2372
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2372&root=pulseaudio&view=rev
Log:
explain why changing rlimits at this time is safe
Modified:
branches/glitch-free/src/daemon/main.c
Modified: branches/glitch-free/src/daemon/main.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/daemon/main.c?rev=2372&root=pulseaudio&r1=2371&r2=2372&view=diff
==============================================================================
--- branches/glitch-free/src/daemon/main.c (original)
+++ branches/glitch-free/src/daemon/main.c Tue May 6 23:12:39 2008
@@ -465,6 +465,13 @@
}
#ifdef HAVE_SYS_RESOURCE_H
+ /* Reset resource limits. If we are run as root (for system mode)
+ * this might end up increasing the limits, which is intended
+ * behaviour. For all other cases, i.e. started as normal user, or
+ * SUID root at this point we should have no CAP_SYS_RESOURCE and
+ * increasing the limits thus should fail. Which is, too, intended
+ * behaviour */
+
set_all_rlimits(conf);
#endif
More information about the pulseaudio-commits
mailing list