mirror of
https://passt.top/passt
synced 2025-06-11 18:15:34 +02:00
convert all remaining err() followed by exit() to die()
This actually leaves us with 0 uses of err(), but someone could want to use it in the future, so we may as well leave it around. Signed-off-by: Laine Stump <laine@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
a1ab1ca2ee
commit
c9af6f92db
6 changed files with 47 additions and 91 deletions
12
passt.c
12
passt.c
|
@ -202,10 +202,8 @@ int main(int argc, char **argv)
|
|||
name = basename(argv0);
|
||||
if (strstr(name, "pasta")) {
|
||||
sa.sa_handler = pasta_child_handler;
|
||||
if (sigaction(SIGCHLD, &sa, NULL) || signal(SIGPIPE, SIG_IGN)) {
|
||||
err("Couldn't install signal handlers");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (sigaction(SIGCHLD, &sa, NULL) || signal(SIGPIPE, SIG_IGN))
|
||||
die("Couldn't install signal handlers");
|
||||
|
||||
c.mode = MODE_PASTA;
|
||||
log_name = "pasta";
|
||||
|
@ -284,10 +282,8 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (isolate_prefork(&c)) {
|
||||
err("Failed to sandbox process, exiting\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (isolate_prefork(&c))
|
||||
die("Failed to sandbox process, exiting");
|
||||
|
||||
/* Once the log mask is not LOG_EMERG, we will no longer
|
||||
* log to stderr if there was a log file specified.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue