]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/logger.c
logger: use iovec and sendmsg() to send message
authorKarel Zak <kzak@redhat.com>
Tue, 27 Oct 2015 12:19:16 +0000 (13:19 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Oct 2015 12:19:16 +0000 (13:19 +0100)
commit94a28496aa3fcec48dc58917342ec6bcc23f0c31
treecb789ee7eb0ccbe8bb4859ba1042ab9814b893a7
parentda0c95128c99cd8fec7bf9e498fd04b607255eea
logger: use iovec and sendmsg() to send message

The iovec based solutions allow to send multiple strings by one
syscall (for example additional \n messages separator). We can also
use it to send additional socket header metadata (e.g.
SCM_CREDENTIALS) later.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/logger.c