summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2010-01-11 01:32:06 +0000
committerOthmar Gsenger <otti@anytun.org>2010-01-11 01:32:06 +0000
commit335b4b56fbd44f8f428b6719089d426e61649af5 (patch)
treeead4f470caaa6cca8ee2e2c5946d2abb9ad4ace5
parentbugfix in new sysexec (diff)
fixed double close of pipefd
-rw-r--r--src/sysExec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sysExec.cpp b/src/sysExec.cpp
index cb12f13..8e94c89 100644
--- a/src/sysExec.cpp
+++ b/src/sysExec.cpp
@@ -158,6 +158,7 @@ void SysExec::waitForScript()
cLog.msg(Log::PRIO_ERROR) << "executing script '" << script_ << "': unknown error";
close(pipefd_);
+ closed_=true;
}
SysExec::~SysExec()