diff options
author | Franck Bui <fbui@suse.com> | 2019-06-27 18:23:01 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2019-07-16 17:40:35 +0200 |
commit | f46c706bdd4316ae8ed6baf7a8c382b90b84f648 (patch) | |
tree | 52c15f80b9a4c91b83c815f71947e2347a1a32ab /src/escape | |
parent | f8540bde72df3dab520a510048bcb3cc565b94d8 (diff) | |
download | systemd-f46c706bdd4316ae8ed6baf7a8c382b90b84f648.tar.gz |
coredump: gather all process metadata in iovecs first and then cache them
Now we first gather all process metadata and populate the process info cache
with them. In this way, the cache only references metadata recorded in iovecs[]
so there's no need to bother freeing (part of) cached metadata later.
The other advantage is that the coredump handler mode and the service mode are
more similar as the cache is populated in the same way for both cases.
It also renames the array indexes so it becomes clear which metadata are passed
by the kernel and which ones are retrieved from the runtime environment.
Diffstat (limited to 'src/escape')
0 files changed, 0 insertions, 0 deletions