summaryrefslogtreecommitdiff
path: root/src/sysExec.h
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2010-02-17 21:40:54 +0000
committerMarkus Grüneis <gimpf@gimpf.org>2010-02-17 21:40:54 +0000
commitddfc1b38d7bb5cc607afc7fadc6374911f5a9e60 (patch)
tree3bd613880e1a85b146e7a4fe296e3db185757c02 /src/sysExec.h
parentfixed init.d script Required-Start and Stop (diff)
whitespace only change: unified formatting with "astyle --style=k/r --indent=spaces=2 --unpad-paren --add-brackets --align-pointer=type --keep-one-line-blocks --indent-col1-comments --lineend=linux --suffix=none --recursive"
Diffstat (limited to 'src/sysExec.h')
-rw-r--r--src/sysExec.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/sysExec.h b/src/sysExec.h
index b5400b9..7b99638 100644
--- a/src/sysExec.h
+++ b/src/sysExec.h
@@ -11,7 +11,7 @@
* tunneling and relaying of packets of any protocol.
*
*
- * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl,
+ * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl,
* Christian Pointner <satp@wirdorange.org>
*
* This file is part of Anytun.
@@ -42,33 +42,33 @@ typedef std::list<std::string> StringList;
class SysExec
{
- public:
- SysExec(std::string const& script);
- SysExec(std::string const& script, StringVector args);
- SysExec(std::string const& script, StringList env);
- SysExec(std::string const& script, StringVector args, StringList env);
- ~SysExec();
+public:
+ SysExec(std::string const& script);
+ SysExec(std::string const& script, StringVector args);
+ SysExec(std::string const& script, StringList env);
+ SysExec(std::string const& script, StringVector args, StringList env);
+ ~SysExec();
- int waitForScript();
- int getReturnCode() const;
+ int waitForScript();
+ int getReturnCode() const;
- static void waitAndDestroy(SysExec*& s);
+ static void waitAndDestroy(SysExec*& s);
- private:
- void doExec(StringVector args, StringList env);
+private:
+ void doExec(StringVector args, StringList env);
- std::string script_;
- bool closed_;
+ std::string script_;
+ bool closed_;
#ifdef _MSC_VER
- PROCESS_INFORMATION process_info_;
- DWORD return_code_;
+ PROCESS_INFORMATION process_info_;
+ DWORD return_code_;
#else
- pid_t pid_;
- int pipefd_;
- int return_code_;
+ pid_t pid_;
+ int pipefd_;
+ int return_code_;
#endif
-
+
};
#endif