Check values from write() and close() system calls.
FIXME: Missing wrapper around 'write()'.
Version 2.02.78 -
====================================
+ Add logging for pipe write() and close() error in clvmd child_init_signal().
Add test for existance of orphan vginfo in _lvmcache_update_vgname().
Do a full rescan if some device is missing in read_pvs_in_vg().
Avoid misleading warnings in vgextend --restoremissing in certain cases.
/* Called to signal the parent how well we got on during initialisation */
static void child_init_signal(int status)
{
- if (child_pipe[1]) {
- write(child_pipe[1], &status, sizeof(status));
- close(child_pipe[1]);
+ if (child_pipe[1]) {
+ /* FIXME Use a proper wrapper around write */
+ if (write(child_pipe[1], &status, sizeof(status)) < 0)
+ log_sys_error("write", "child_pipe");
+ if (close(child_pipe[1]))
+ log_sys_error("close", "child_pipe");
}
}