Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util-lib: move main() definition macros to its own header file | Lennart Poettering | 2018-11-19 | 35 | -23/+60 |
| | | | | | | | | | This way, we can extend the macro a bit with stuff pulled in from other headers without this affecting everything which pulls in macro.h, which is one of our most basic headers. This is just refactoring, no change in behaviour, in prepartion for later changes. | ||||
* | Merge pull request #10811 from keszybz/define-main-through-macro | Lennart Poettering | 2018-11-19 | 32 | -701/+472 |
|\ | | | | | Define main through macro | ||||
| * | volatile-root: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -22/+12 |
| | | |||||
| * | tty-ask-password-agent: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -21/+18 |
| | | |||||
| * | sysv-generator: configure logging before use and define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -21/+16 |
| | | |||||
| * | stdio-bridge: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -94/+48 |
| | | |||||
| * | sleep: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -9/+8 |
| | | |||||
| * | remount-fs: configure logging before use and define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -44/+31 |
| | | |||||
| * | random-seed: configure logging before use and define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -46/+27 |
| | | |||||
| * | quotacheck: configure logging before use and define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -11/+12 |
| | | |||||
| * | portabled: add missing STOPPING=1 notification | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -0/+3 |
| | | |||||
| * | portabled: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -16/+9 |
| | | |||||
| * | path: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -6/+7 |
| | | |||||
| * | makefs: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -19/+14 |
| | | |||||
| * | notify: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -40/+25 |
| | | |||||
| * | machined: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -15/+9 |
| | | |||||
| * | user-runtime-dir: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -14/+11 |
| | | |||||
| * | logind: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -19/+11 |
| | | |||||
| * | inhibit: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -21/+12 |
| | | |||||
| * | cat: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -15/+10 |
| | | |||||
| * | import: define mains through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 4 | -35/+25 |
| | | |||||
| * | id128: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -6/+5 |
| | | |||||
| * | hwdb: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -6/+5 |
| | | |||||
| * | hostnamectl: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -10/+7 |
| | | |||||
| * | fsck: configure logging before use and define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -60/+36 |
| | | | | | | | | | | | | | | There's a slight change in logic: before, when rebooting the machine, we could also request quotacheck (by touching /run/systemd/quotacheck) if the fsck helper set FSCK_ERROR_CORRECTED. This is just a race, and doesn't matter much in practice. | ||||
| * | escape: use free_and_replace | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -5/+3 |
| | | |||||
| * | escape: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -50/+30 |
| | | |||||
| * | detect-virt: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -31/+17 |
| | | |||||
| * | coredump: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -14/+10 |
| | | |||||
| * | boot-check-no-failures: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 1 | -14/+9 |
| | | |||||
| * | ac-power: define main through macro | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 2 | -8/+17 |
| | | | | | | | | | | | | I decided to use a separate definition for this because it's too easy to return positive from functions which don't need this distinction and only return negative on error and success otherwise. | ||||
| * | Introduce main definer and use it in cgtop | Zbigniew Jędrzejewski-Szmek | 2018-11-17 | 2 | -29/+25 |
| | | | | | | | | This actually fixes one bogus return code in error path. | ||||
* | | pam_systemd: suppress LOG_DEBUG log messages if debugging is off | Lennart Poettering | 2018-11-19 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | | | In the PAM module we need to suppress LOG_DEBUG messages manually, if debug logging is not on, as PAM won't do this for us. We did this correctly for most log messages already, but two were missing. Let's fix those too. Fixes: #10822 | ||||
* | | Merge pull request #10698 from yuwata/udevd-replace-udev-device | Lennart Poettering | 2018-11-19 | 1 | -356/+450 |
|\ \ | | | | | | | udevd: replace udev_device by sd_device | ||||
| * | | udevd: replace udev_device in struct event by sd_device | Yu Watanabe | 2018-11-17 | 1 | -66/+130 |
| | | | |||||
| * | | udevd: update several log messages | Yu Watanabe | 2018-11-17 | 1 | -50/+49 |
| | | | |||||
| * | | udevd: decrease indentation | Yu Watanabe | 2018-11-17 | 1 | -10/+6 |
| | | | |||||
| * | | udevd: rename event sources in struct event | Yu Watanabe | 2018-11-17 | 1 | -6/+7 |
| | | | |||||
| * | | udevd: capitalize log messages in on_sigchld() | Yu Watanabe | 2018-11-17 | 1 | -9/+13 |
| | | | |||||
| * | | udevd: also use sd_device_monitor_start() in worker_main() | Yu Watanabe | 2018-11-17 | 1 | -67/+53 |
| | | | |||||
| * | | udevd: use sd_device_monitor_start() in manager_new() | Yu Watanabe | 2018-11-17 | 1 | -16/+9 |
| | | | |||||
| * | | udevd: replace udev_monitor by sd_device_monitor | Yu Watanabe | 2018-11-17 | 1 | -51/+62 |
| | | | |||||
| * | | udevd: use safe_fork() to spawn worker process | Yu Watanabe | 2018-11-17 | 1 | -27/+20 |
| | | | |||||
| * | | udevd: make worker_process_device() take sd_device instead of udev_device | Yu Watanabe | 2018-11-17 | 1 | -8/+17 |
| | | | |||||
| * | | udevd: make worker_lock_block_device() take sd_device instead of udev_device | Yu Watanabe | 2018-11-17 | 1 | -16/+38 |
| | | | | | | | | | | | | Also adds many debug logs. | ||||
| * | | udevd: split worker_spawn() and manager_free() in small pieces | Yu Watanabe | 2018-11-17 | 1 | -171/+187 |
| | | | |||||
* | | | Merge pull request #10809 from keszybz/unit-log-result | Lennart Poettering | 2018-11-19 | 9 | -34/+16 |
|\ \ \ | | | | | | | | | Add helper function for logging unit results | ||||
| * | | | TODO: add entry | Zbigniew Jędrzejewski-Szmek | 2018-11-16 | 1 | -0/+2 |
| | | | | |||||
| * | | | core: introduce a helper function to wrap unit_log_{success,failure} | Zbigniew Jędrzejewski-Szmek | 2018-11-16 | 8 | -34/+14 |
| | | | | | | | | | | | | | | | | | | | | It's inline so that the compiler can easily optimize away the call to get status string. | ||||
* | | | | Merge pull request #10814 from poettering/logind-suspend-fallback | Lennart Poettering | 2018-11-19 | 1 | -1/+9 |
|\ \ \ \ | | | | | | | | | | | if we need to hibernate/suspend-then-hibernate/hybrid-sleep due to keypress/lid switch but can't, fallback to regular suspend |