diff options
author | Pixel <Pixel> | 2002-01-10 14:15:35 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-01-10 14:15:35 +0000 |
commit | 53de7397c5d9cfcbf480f122a379f077345f8ba8 (patch) | |
tree | f8061c3fe184c635d2fa419ed039e0611a11063f /lib/OutPipe.cc | |
parent | 692672cd414addadfe666904c10d4492a7fcbe17 (diff) |
Better duplicating handling...
Diffstat (limited to 'lib/OutPipe.cc')
-rw-r--r-- | lib/OutPipe.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/OutPipe.cc b/lib/OutPipe.cc index 4b2e710..be93e15 100644 --- a/lib/OutPipe.cc +++ b/lib/OutPipe.cc @@ -11,6 +11,11 @@ OutPipe::~OutPipe() { } } +OutPipe::OutPipe(const OutPipe & o) : Handle(o), hooked(o.hooked) { + p[0] = dup(i.p[0]); + p[1] = GetHandle(); +} + void OutPipe::Hook() { if (!hooked) { hooked = 1; |