1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-28 02:50:16 +03:00

coredump: add note about lack of rollback on oom

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-01-15 20:25:35 -05:00
parent a7581ff940
commit 561eede4d1

View File

@ -1049,7 +1049,9 @@ static int gather_pid_metadata(
char **comm_fallback,
char **comm_ret,
struct iovec *iovec, size_t *n_iovec) {
/* We need 25 empty slots in iovec! */
/* We need 25 empty slots in iovec!
* Note that if we fail on oom later on, we do not roll-back changes to the iovec
* structure. (It remains valid, with the first n_iovec fields initialized.) */
_cleanup_free_ char *exe = NULL, *comm = NULL;
uid_t owner_uid;