From 21fcfa3348213aa87f0e3aef62ca4720c6d31cb7 Mon Sep 17 00:00:00 2001 From: Robert Xu Date: Thu, 10 Nov 2011 18:04:39 -0500 Subject: initial commit to suse branch: eclipse integration --- opensuse/tdelibs/kdeprint-restart-cupsd.diff | 32 ---------------------------- 1 file changed, 32 deletions(-) delete mode 100644 opensuse/tdelibs/kdeprint-restart-cupsd.diff (limited to 'opensuse/tdelibs/kdeprint-restart-cupsd.diff') diff --git a/opensuse/tdelibs/kdeprint-restart-cupsd.diff b/opensuse/tdelibs/kdeprint-restart-cupsd.diff deleted file mode 100644 index d464098eb..000000000 --- a/opensuse/tdelibs/kdeprint-restart-cupsd.diff +++ /dev/null @@ -1,32 +0,0 @@ -Index: kdeprint/cups/cupsdconf2/cupsddialog.cpp -=================================================================== ---- kdeprint/cups/cupsdconf2/cupsddialog.cpp.orig -+++ kdeprint/cups/cupsdconf2/cupsddialog.cpp -@@ -45,6 +45,7 @@ - #include - #include - -+#include - #include - #include - -@@ -205,15 +206,13 @@ bool CupsdDialog::restartServer(QString& - } - else - { -+ KProcess proc; - bool success = false; - if (getuid() == 0 ) -- success = (::kill(serverPid, SIGHUP) == 0); -+ proc << "rccups" << "force-reload"; - else -- { -- KProcess proc; -- proc << "kdesu" << "-c" << "kill -SIGHUP " + QString::number( serverPid ); -- success = proc.start( KProcess::Block ) && proc.normalExit(); -- } -+ proc << "kdesu" << "-c" << "rccups" << "force-reload"; -+ success = proc.start( KProcess::Block ) && proc.normalExit(); - if( !success ) - msg = i18n("Unable to restart CUPS server (pid = %1)").arg(serverPid); - } -- cgit v1.2.1