summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2017-10-15 11:37:16 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-10-25 00:35:57 +0000
commit9953e69b6700d42db8e67d797d2f7920fd978894 (patch)
tree6f269366e7cc228367f6f488205ff26888ed6994
parent2ad1b55fcf489bfd28f60e6389ab172391ce23c3 (diff)
downloadphosphor-bmc-code-mgmt-9953e69b6700d42db8e67d797d2f7920fd978894.tar.gz
phosphor-bmc-code-mgmt-9953e69b6700d42db8e67d797d2f7920fd978894.zip
Remove move constructor in Watch class
The Watch class is not moveable since the this ptr is passed to sd_event_add_io for context. After a move, systemd context will be pointing at something random. Based on feedback on https://gerrit.openbmc-project.xyz/#/c/6718/7/watch.hpp@35 Change-Id: Idbed233bf84c814d76899dac4fa097c1ee8915f4 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--watch.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/watch.hpp b/watch.hpp
index b118d59..99854b7 100644
--- a/watch.hpp
+++ b/watch.hpp
@@ -30,8 +30,8 @@ class Watch
Watch(const Watch&) = delete;
Watch& operator=(const Watch&) = delete;
- Watch(Watch&&) = default;
- Watch& operator=(Watch&&) = default;
+ Watch(Watch&&) = delete;
+ Watch& operator=(Watch&&) = delete;
/** @brief dtor - remove inotify watch and close fd's
*/
OpenPOWER on IntegriCloud