summaryrefslogtreecommitdiff
path: root/lib/Handle.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2002-01-10 14:15:35 +0000
committerPixel <Pixel>2002-01-10 14:15:35 +0000
commit53de7397c5d9cfcbf480f122a379f077345f8ba8 (patch)
treef8061c3fe184c635d2fa419ed039e0611a11063f /lib/Handle.cc
parent692672cd414addadfe666904c10d4492a7fcbe17 (diff)
Better duplicating handling...
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r--lib/Handle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index 6c3bbbd..fe7c10b 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -6,7 +6,7 @@
#include "Handle.h"
#include "config.h"
-Handle::Handle(const Handle & nh) : h(nh.h >= 0 ? dup(nh.h) : nh.h), closed(false), nonblock(false), zfile(0), z(0) {
+Handle::Handle(const Handle & nh) : h(nh.h >= 0 ? dup(nh.h) : nh.h), closed(nh.closed), nonblock(nh.closed), zfile(0), z(0) {
// cerr << "Duplication of handle " << nh.h << " to " << h << endl;
if ((h >= 0) && (nh.z)) {
SetZ(nh.z);
@@ -18,7 +18,7 @@ Handle::~Handle() {
close();
}
-Handle::Handle(int nh) : h(nh), closed(false), zfile(0), z(0) {
+Handle::Handle(int nh) : h(nh), closed(false), nonblock(false), zfile(0), z(0) {
// cerr << "Initialising handle " << h << endl;
}