Details coming soon.

This commit is contained in:
Paulchen-Panther
2018-12-27 23:11:32 +01:00
parent e3be03ea73
commit d762aa2f3e
186 changed files with 6156 additions and 5444 deletions

View File

@@ -11,7 +11,7 @@
#include <stdexcept>
namespace Process {
void restartHyperion(bool asNewProcess)
{
Logger* log = Logger::getInstance("Process");
@@ -19,8 +19,8 @@ void restartHyperion(bool asNewProcess)
<< " *******************************************" << std::endl
<< " * hyperion will restart now *" << std::endl
<< " *******************************************" << std::endl << std::endl;
QStringList qargs = QCoreApplication::arguments();
int size = qargs.size();
char *args[size+1];
@@ -43,7 +43,7 @@ QByteArray command_exec(QString cmd, QByteArray data)
QString result = "";
std::shared_ptr<FILE> pipe(popen(cmd.toLocal8Bit().constData(), "r"), pclose);
if (pipe)
if (pipe)
{
while (!feof(pipe.get()))
{
@@ -54,4 +54,4 @@ QByteArray command_exec(QString cmd, QByteArray data)
return QSTRING_CSTR(result);
}
};
};