MemoryWatcher: Initialize m_running to false to prevent crashes on OSX in the dtor when it picks up the wrong initial value

This commit is contained in:
Matt Mastracci 2016-01-08 11:21:21 -07:00
parent e8e0ad3e52
commit a60b24c937
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ private:
void WatcherThread(); void WatcherThread();
std::thread m_watcher_thread; std::thread m_watcher_thread;
std::atomic_bool m_running; std::atomic_bool m_running{false};
int m_fd; int m_fd;
sockaddr_un m_addr; sockaddr_un m_addr;