summaryrefslogtreecommitdiff
path: root/src/posix
diff options
context:
space:
mode:
Diffstat (limited to 'src/posix')
-rw-r--r--src/posix/sysExec.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/posix/sysExec.hpp b/src/posix/sysExec.hpp
index 506e03d..359c1e4 100644
--- a/src/posix/sysExec.hpp
+++ b/src/posix/sysExec.hpp
@@ -29,10 +29,10 @@
* You should have received a copy of the GNU General Public License
* along with anytun. If not, see <http://www.gnu.org/licenses/>.
*/
-#pragma once
-#ifndef ANYTUN_sysexec_hpp_INCLUDED
-#define ANYTUN_sysexec_hpp_INCLUDED
-
+#pragma once
+#ifndef ANYTUN_sysexec_hpp_INCLUDED
+#define ANYTUN_sysexec_hpp_INCLUDED
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -42,7 +42,7 @@
#include <stdlib.h>
#include <string.h>
#include <cstring>
-
+
SysExec::~SysExec()
{
if(!closed_)
@@ -62,7 +62,7 @@ char** dupEnv(StringList const& env)
evp[env.size()] = NULL;
return evp;
}
-
+
void SysExec::doExec(std::string const& script, StringVector const& args, StringList const& env)
{
int pipefd[2];
@@ -145,7 +145,7 @@ int SysExec::waitForScript()
return return_code_;
}
-
+
void SysExec::waitAndDestroy(SysExec*& s)
{
if(!s)
@@ -161,6 +161,6 @@ void SysExec::waitAndDestroy(SysExec*& s)
delete(s);
s = NULL;
-}
-
-#endif // ANYTUN_sysexec_hpp_INCLUDED \ No newline at end of file
+}
+
+#endif // ANYTUN_sysexec_hpp_INCLUDED