diff --git a/src/modules/eterm/src/eterm/system/autohandle.cpp b/src/modules/eterm/src/eterm/system/autohandle.cpp index 0ef1a9bc3..1a009bfe8 100644 --- a/src/modules/eterm/src/eterm/system/autohandle.cpp +++ b/src/modules/eterm/src/eterm/system/autohandle.cpp @@ -61,6 +61,7 @@ AutoHandle::AutoHandle( int fd ) : mHandle( fd ) {} void AutoHandle::release() const { if ( mHandle != -1 ) { close( mHandle ); + mHandle = -1; } } #endif