Change-Id: Icdfa44aca13924c4e73e5cf7345fea6ed8857433
{
friend class Atspi;
friend class std::default_delete<WatchHandler>;
- Atspi *atspi;
+ Atspi *atspi = nullptr;
size_t index = 0;
WatchHandler() = default;
DEBUG("spurious wake...");
}
}
- close(closingFd);
- close(dlogFile);
+
+ if (close(closingFd) == -1)
+ WARNING("Failed to close pipes");
+
+ if (close(dlogFile) == -1)
+ WARNING("Failed to close file");
+
} };
return true;
}
DEBUG("exception");
r = 1;
}
- kill(c, 9);
+ if (kill(c, 9) == -1)
+ WARNING("failed to kill: %d", c);
+
return r;
} else {
ASSERT(0, "failed to fork");
ClassWithCounters &operator = (const ClassWithCounters &other)
{
++assignmentCallsCount;
+ if (&other == this)
+ return *this;
value = other.value;
return *this;
}
ClassWithCounters &operator = (ClassWithCounters &&other)
{
++assignmentCallsCount;
+ if (&other == this)
+ return *this;
value = other.value;
return *this;
}