| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
as `assert()` might be dropped with `-DNDEBUG`.
Follow-up to cf3095a and 1637e75.
|
|
|
|
|
| |
and also if argv[0] is non-empty as a precaution for issues similar to
CVE-2021-4034.
|
| |
|
|
|
|
|
|
|
|
|
| |
So far we silently convert negative return values from run() as
EXIT_FAILURE, which is how UNIX expects it. In many cases it would be
very useful for the caller to retrieve the actual error number we exit
with. Let's generically return that via sd_notify()'s ERRNO= attribute.
This means callers can set $NOTIFY_SOCKET and get the actual error
number delivered at their doorstep just like that.
|
| |
|
|
|
|
| |
Let's terminate pagers and agents before releasing all memory.
|
|
|
|
|
| |
Let's remove the risk of forgetting to save argc/argv if
DEFINE_MAIN_FUNCTION() is used.
|
|
|
|
|
|
|
|
|
|
| |
There should be no functional difference, except that the error message
is changd from "three or no arguments" to "zero or three arguments". Somehow
the inverted form always seemed strange.
umask() call is also dropped from run-generator. I think it wasn't dropped in
053254e3cb215df3b8c905bc39b920f8817e1c7d because the run generator was merged
around the same time.
|
|
|
|
| |
test-udev
|
|
|
|
|
|
| |
from the macro
This doesn't save us anything, but I like consistency.
|
|
|
|
|
|
| |
The agent is closed after the static destuctors but before the pager.
No users of DEFINE_MAIN_FUNCTION* were using a polkit agent, so this makes no
functional difference.
|
|
This is high-level functionality, and fits better in shared/ (which is for
our executables), than in basic/ (which is also for libraries).
|