[telepathy-stream-engine/master] Put a 30ms limit on time between blocking calls
Olivier Crête
olivier.crete at collabora.co.uk
Mon Jul 13 13:07:20 PDT 2009
---
src/stream-engine-main.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/stream-engine-main.c b/src/stream-engine-main.c
index 3615f59..7fdd349 100644
--- a/src/stream-engine-main.c
+++ b/src/stream-engine-main.c
@@ -232,12 +232,11 @@ int main(int argc, char **argv)
if (setrlimit(RLIMIT_RTPRIO, &rl) < 0)
g_warning("setrlimit rtprio: %s", strerror (errno));
-#if 0
- rl.rlim_max = rl.rlim_cur = 100*1000*1000;
+ /* In nanoseconds */
+ rl.rlim_max = rl.rlim_cur = 30*1000*1000;
if (setrlimit(RLIMIT_RTTIME, &rl) < 0)
g_warning("setrlimit rttime: %s", strerror (errno));
-#endif
uid = getuid();
if (uid != 0 && geteuid() == 0) {
--
1.5.6.5
More information about the telepathy-commits
mailing list