diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-18 03:04:40 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-18 03:04:40 +0200 |
commit | 7bbbf406f3cd920222aba9039c6a460370a4ab14 (patch) | |
tree | 058f99457a0bbd8a65962a1ebb62257dca8c0e43 /fastos | |
parent | 7a4461355f7ee8e5ec71888516cbfd640dd7e110 (diff) |
Add missing file.
Diffstat (limited to 'fastos')
-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); +} |