]> git.ipfire.org Git - thirdparty/systemd.git/commit
notify-recv: several followups
authorMike Yuan <me@yhndnzj.com>
Fri, 21 Feb 2025 14:16:46 +0000 (15:16 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 26 Feb 2025 12:02:23 +0000 (13:02 +0100)
commit74cd56d31b9673d2a3248e6ffbea2294a0fe2790
tree66fc2394e2b80500eb09db80b8fbc89289571309
parent2006e341d39d65e6675635c3062e2cb5b525dc10
notify-recv: several followups

Follow-up for 7f6af95dab037e7d15591a924dbf256460bbf069

- Allocate internal buf on the stack, memdup() only at the end.
  This ensures we're able to handle OOM gracefully, i.e.
  return -EAGAIN on OOM while still emptying socket buffer.
- Do not treat empty notify message as error.
- Raise log level since all callers log loudly anyway.
src/import/importd.c
src/notify/notify.c
src/nspawn/nspawn.c
src/shared/notify-recv.c
src/sysupdate/sysupdate-transfer.c
src/sysupdate/sysupdated.c