FreeBSD Bugzilla – Attachment 191615 Details for
Bug 226712
sysutils/sysadm: fix 100% CPU usage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix
sysadm.patch (text/plain), 1.32 KB, created by
Otacílio de Araújo Ramos Neto
on 2018-03-19 03:38:50 UTC
(
hide
)
Description:
patch to fix
Filename:
MIME Type:
Creator:
Otacílio de Araújo Ramos Neto
Created:
2018-03-19 03:38:50 UTC
Size:
1.32 KB
patch
obsolete
>Index: files/patch-server_library_sysadm-general.cpp >=================================================================== >--- files/patch-server_library_sysadm-general.cpp (nonexistent) >+++ files/patch-server_library_sysadm-general.cpp (working copy) >@@ -0,0 +1,14 @@ >+--- server/library/sysadm-general.cpp.orig 2018-03-19 01:08:24 UTC >++++ server/library/sysadm-general.cpp >+@@ -36,7 +36,10 @@ QString General::RunCommand(bool &success, QString com >+ if(arguments.isEmpty()){ proc.start(command); } >+ else{ proc.start(command, arguments); } >+ //Wait for the process to finish (but don't block the event loop) >+- while( !proc.waitForFinished(500) ){ QCoreApplication::processEvents(); } >++ while( !proc.waitForFinished(500) ){ >++ if(proc.state() != QProcess::Running){ break; } //somehow missed the finished signal >++ QCoreApplication::processEvents(); >++ } >+ success = (proc.exitCode()==0); //return success/failure >+ return QString(proc.readAllStandardOutput()); >+ } > >Property changes on: files/patch-server_library_sysadm-general.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 226712
: 191615