jreznik pushed to arts (epel7). "- don't pop up a dialog on CPU overload (#361891)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 2 15:12:06 UTC 2015


>From d2b89657845872473f8d94ee650fe7940c85fff4 Mon Sep 17 00:00:00 2001
From: Kevin Kofler <kkofler at fedoraproject.org>
Date: Wed, 16 Dec 2009 09:05:12 +0000
Subject: - don't pop up a dialog on CPU overload (#361891)


diff --git a/arts-1.5.10-cpu-overload-quiet.patch b/arts-1.5.10-cpu-overload-quiet.patch
new file mode 100644
index 0000000..fb56e31
--- /dev/null
+++ b/arts-1.5.10-cpu-overload-quiet.patch
@@ -0,0 +1,20 @@
+diff -ur arts-1.5.10/soundserver/cpuusage.cc arts-1.5.10-cpu-overload-quiet/soundserver/cpuusage.cc
+--- arts-1.5.10/soundserver/cpuusage.cc	2005-09-10 10:13:31.000000000 +0200
++++ arts-1.5.10-cpu-overload-quiet/soundserver/cpuusage.cc	2009-12-16 09:28:14.000000000 +0100
+@@ -24,6 +24,7 @@
+ #include "dispatcher.h"
+ #include "debug.h"
+ 
++#include <stdlib.h>
+ #include <time.h>
+ #include <unistd.h>
+ #include <sys/time.h>
+@@ -121,7 +122,7 @@
+ 
+ 		// ok, cancel synthesis due to cpu overload! brutal method
+ 		if(d->stalled > 15)
+-			arts_fatal("cpu overload, aborting");
++			exit(1);
+ 	}
+ 
+ 	// prepare for next checkpoint
diff --git a/arts.spec b/arts.spec
index 2a6aae0..1db3de7 100644
--- a/arts.spec
+++ b/arts.spec
@@ -10,7 +10,7 @@ Summary: aRts (analog realtime synthesizer) - the KDE sound system
 Group:   System Environment/Daemons
 Epoch:   8
 Version: 1.5.10
-Release: 10%{?dist}
+Release: 11%{?dist}
 
 License: LGPLv2+
 Url: http://www.kde.org
@@ -24,6 +24,8 @@ Patch5: arts-1.3.1-alsa.patch
 Patch6: arts-1.5.8-glibc.patch
 Patch7: arts-1.5.0-check_tmp_dir.patch
 Patch8: arts-1.5.2-multilib.patch
+# don't pop up a dialog on CPU overload (#361891)
+Patch9: arts-1.5.10-cpu-overload-quiet.patch
 # kde#93359
 Patch50: arts-1.5.4-dlopenext.patch
 Patch51: kde-3.5-libtool-shlibext.patch
@@ -82,6 +84,7 @@ Install %{name}-devel if you intend to write applications using aRts.
 %patch6 -p1 -b .glibc
 %patch7 -p1 -b .check_tmp_dir
 %patch8 -p1 -b .multilib
+%patch9 -p1 -b .cpu-overload-quiet
 
 %patch50 -p1 -b .dlopenext
 %patch51 -p1 -b .libtool-shlibext
@@ -193,6 +196,9 @@ rm -rf  %{buildroot}
 
 
 %changelog
+* Wed Dec 16 2009 Kevin Kofler <Kevin at tigcc.ticalc.org> - 1.5.10-11
+- don't pop up a dialog on CPU overload (#361891)
+
 * Thu Dec 10 2009 Stepan Kasal <skasal at redhat.com> - 1.5.10-10
 - patch autoconfigury to build with autoconf >= 2.64
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/arts.git/commit/?h=epel7&id=d2b89657845872473f8d94ee650fe7940c85fff4


More information about the scm-commits mailing list