return count;
}
+/*
+ * write watchdog IP command along with result data
+ * returns true on success
+ */
static bool
write_ipc_command_with_result_data(WDCommandData * ipcCommand, char type, char *data, int len)
{
data_len = strlen(data) + 1;
}
- if (write_ipc_command_with_result_data(ipcCommand, res_type, data, data_len))
+ if (!write_ipc_command_with_result_data(ipcCommand, res_type, data, data_len))
{
ereport(NOTICE,
(errmsg("error writing to IPC socket")));
return count;
}
+/*
+ * write packet to watchdog communication socket
+ * returns true on success.
+ */
static bool
write_packet_to_socket(int sock, WDPacketData * pkt, bool ipcPacket)
{