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:

committed by
Stefano Brivio

parent
a1ab1ca2ee
commit
c9af6f92db
6
log.c
6
log.c
@@ -193,10 +193,8 @@ void logfile_init(const char *name, const char *path, size_t size)
|
||||
|
||||
log_file = open(path, O_CREAT | O_TRUNC | O_APPEND | O_RDWR | O_CLOEXEC,
|
||||
S_IRUSR | S_IWUSR);
|
||||
if (log_file == -1) {
|
||||
err("Couldn't open log file %s: %s", path, strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (log_file == -1)
|
||||
die("Couldn't open log file %s: %s", path, strerror(errno));
|
||||
|
||||
log_size = size ? size : LOGFILE_SIZE_DEFAULT;
|
||||
|
||||
|
Reference in New Issue
Block a user