mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
portabled: Make use of SYNTHETIC_ERRNO()
This commit is contained in:
parent
b67f05dabf
commit
e4c5d78e5f
@ -134,10 +134,8 @@ static int run(int argc, char *argv[]) {
|
|||||||
|
|
||||||
umask(0022);
|
umask(0022);
|
||||||
|
|
||||||
if (argc != 1) {
|
if (argc != 1)
|
||||||
log_error("This program takes no arguments.");
|
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "This program takes no arguments.");
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGCHLD, SIGTERM, SIGINT, -1) >= 0);
|
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGCHLD, SIGTERM, SIGINT, -1) >= 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user