If nobody keeps the serial number of an outgoing message we know that
nobody expects an answer to it, so set the no_reply flag accordingly.
if (!m)
return -EINVAL;
+ /* If the serial number isn't kept, then we know that no reply
+ * is expected */
+ if (!serial && !m->sealed)
+ m->header->flags |= SD_BUS_MESSAGE_NO_REPLY_EXPECTED;
+
r = bus_seal_message(bus, m);
if (r < 0)
return r;
* - add page donation logic
* - api for appending/reading fixed arrays
* - always verify container depth
- * - implicitly set no_reply when a message-call is sent an the serial number ignored
* - handle NULL strings nicer when appending
* - merge busctl into systemctl or so?
* - add object handlers