mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2026-10-23 21:35:02 +00:00
commit before starting work on helper
This commit is contained in:
1 parent
c15e387472
commit
1ae30b0821
11 files changed
+28
-26
No files matched your search
Vendored
+1
-1
@@ -22,7 +22,7 @@
|
||||
TaskResult runTask(const QString cmd)
|
||||
{
|
||||
return Task::await<TaskResult>( [ & ]() {
|
||||
QProcess command;
|
||||
SandboxProcess command;
|
||||
command.start(cmd);
|
||||
command.waitForFinished(-1);
|
||||
TaskResult r;
|
||||
|
||||
Vendored
+11
@@ -20,10 +20,21 @@
|
||||
#define TASKADDS_H
|
||||
|
||||
#include <QProcess>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "task.h"
|
||||
|
||||
|
||||
class SandboxProcess : public QProcess
|
||||
{
|
||||
protected:
|
||||
void setupChildProcess()
|
||||
{
|
||||
::setuid(0);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
struct TaskResult
|
||||
{
|
||||
int exitCode;
|
||||
|
||||
Reference in new issue
Block a user