summaryrefslogtreecommitdiff
path: root/src/posix/sysExec.hpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-02-04 00:53:18 +0000
committerChristian Pointner <equinox@anytun.org>2010-02-04 00:53:18 +0000
commit338da94bea80a16c737117b614ace2f4bb4446a3 (patch)
tree6d9b1937374c3648aa91e77654fc3dc25bf4b3b0 /src/posix/sysExec.hpp
parentwin32 support for sysExec, sysExec.hpp arch-specific files introduced (diff)
fixed build on posix
some cleanup
Diffstat (limited to 'src/posix/sysExec.hpp')
-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