diff --git a/third-party/rsutils/src/network-adapter-watcher.cpp b/third-party/rsutils/src/network-adapter-watcher.cpp index 4e7c3cf261..942fa1f1f5 100644 --- a/third-party/rsutils/src/network-adapter-watcher.cpp +++ b/third-party/rsutils/src/network-adapter-watcher.cpp @@ -196,9 +196,12 @@ class network_adapter_watcher_singleton #else if( _th.joinable() ) { - if( write( _done, &_done, sizeof( _done ) ) != sizeof( _done ) ) - /* to avoid compiler warning about not using return value */; - _th.join(); + uint64_t incr = 1; // must be 8-byte integer value + auto rv = write( _done, &incr, sizeof( incr ) ); + if( rv != sizeof( incr ) ) + LOG_WARNING( "failed to write to network adapter watcher done event: " << rv ); + else + _th.join(); } close( _socket ); close( _done );