diff options
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r-- | lib/Handle.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index 253ddbf..c02bc55 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -160,4 +160,11 @@ time_t Handle::GetModif(void) { bool Handle::CanWatch(void) { return true; -}
\ No newline at end of file +} + +void Handle::Dup(const Handle & H) { + close(); + if (H.h >= 0) { + h = dup(H.h); + } +} |