]> git.ipfire.org Git - thirdparty/systemd.git/commit
machined: some modernizations
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Apr 2018 10:38:25 +0000 (12:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Apr 2018 17:51:43 +0000 (19:51 +0200)
commit730fa7ce1fc811a82c2425c3eb1ef09fdda03347
treeda656d15711bcfdb350e363f8ab67e517c1be15b
parentedac2c4716cc9b58c1bfc3cdd7dbd8a4b5b1ce77
machined: some modernizations

A couple of minor modernizations:

1. Don't unnecessarily export functions we don't call outside of
   machined.c

2. Use cleanup logic for the manager object.

3. Propagate errors properly from manager_new(). So far if
   sd_event_new() returns EMFILE/ENFILE for some reason we would have
   logged that as log_oom(), which isn#t right, really.

4. Handle SIGTERM/SIGINT cleanly. It's easy, and prettier then letting
   the kernel just abort us. It also makes it possible to valgrind
   machined properly.
src/machine/machinectl.c
src/machine/machined.c
src/machine/machined.h