diff options
-rw-r--r-- | fastos/src/vespa/fastos/process.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fastos/src/vespa/fastos/process.cpp b/fastos/src/vespa/fastos/process.cpp new file mode 100644 index 00000000000..a806799e933 --- /dev/null +++ b/fastos/src/vespa/fastos/process.cpp @@ -0,0 +1,26 @@ +// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#include "process.h" +#include <string.h> + +FastOS_ProcessInterface::FastOS_ProcessInterface (const char *cmdLine, + bool pipeStdin, + FastOS_ProcessRedirectListener *stdoutListener, + FastOS_ProcessRedirectListener *stderrListener, + int bufferSize) : + _extradoublehackforalignment(0.0), + _cmdLine(NULL), + _pipeStdin(pipeStdin), + _stdoutListener(stdoutListener), + _stderrListener(stderrListener), + _bufferSize(bufferSize), + _next(NULL), + _prev(NULL) +{ + _cmdLine = strdup(cmdLine); +} + +FastOS_ProcessInterface::~FastOS_ProcessInterface () +{ + free (_cmdLine); +} |