chiark / gitweb /
journald: allow additional payload in server_driver_message
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 8 Nov 2015 19:05:55 +0000 (14:05 -0500)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:13 +0000 (15:22 +0200)
commit1e2a451e2c0fcfe05875cb4f7ebe0461f66b97e0
treef56d4784605215e5d32def6ca06b448ee03a911f
parentc89a2e44aa8704e182882aca368f9e911bfa22fd
journald: allow additional payload in server_driver_message

The code to format the iovec is shared with log.c. All call sites to
server_driver_message are changed to include the additional "MESSAGE="
part, but the new functionality is not used and change in functionality
is not expected.

iovec is preallocated, so the maximum number of messages is limited.
In server_driver_message N_IOVEC_PAYLOAD_FIELDS is currently set to 1.

New code is not oom safe, it will fail if memory cannot be allocated.
This will be fixed in subsequent commit.
src/basic/log.c
src/basic/log.h