aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-22 06:36:51 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-22 06:36:51 +0000
commit504d3425f2270aa07e81a2f8114fe3a6268e960c (patch)
treea3f1deacb9ed1ff800854e2f63e60444463d2256 /src/log.c
parent72c12ff7680e21929ea528ac304fcccdbd7a2664 (diff)
downloadmpd-504d3425f2270aa07e81a2f8114fe3a6268e960c.tar.gz
mpd-504d3425f2270aa07e81a2f8114fe3a6268e960c.tar.xz
mpd-504d3425f2270aa07e81a2f8114fe3a6268e960c.zip
get rid of the pointless xopen wrapper, open(2) does not throw errno = EINTR
git-svn-id: https://svn.musicpd.org/mpd/trunk@4663 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/log.c b/src/log.c
index 3f05b4d07..a59b331f1 100644
--- a/src/log.c
+++ b/src/log.c
@@ -149,14 +149,14 @@ void open_log_files(const int use_stdout)
prev = umask(0066);
param = parseConfigFilePath(CONF_LOG_FILE, 1);
out_filename = param->value;
- out_fd = xopen(out_filename, O_CREAT | O_WRONLY | O_APPEND, 0666);
+ out_fd = open(out_filename, O_CREAT | O_WRONLY | O_APPEND, 0666);
if (out_fd < 0)
FATAL("problem opening log file \"%s\" (config line %i) for "
"writing\n", param->value, param->line);
param = parseConfigFilePath(CONF_ERROR_FILE, 1);
err_filename = param->value;
- err_fd = xopen(err_filename, O_CREAT | O_WRONLY | O_APPEND, 0666);
+ err_fd = open(err_filename, O_CREAT | O_WRONLY | O_APPEND, 0666);
if (err_fd < 0)
FATAL("problem opening error file \"%s\" (config line %i) for "
"writing\n", param->value, param->line);
@@ -226,13 +226,13 @@ int cycle_log_files(void)
prev = umask(0066);
- out_fd = xopen(out_filename, O_CREAT | O_WRONLY | O_APPEND, 0666);
+ out_fd = open(out_filename, O_CREAT | O_WRONLY | O_APPEND, 0666);
if (out_fd < 0) {
ERROR("error re-opening log file: %s\n", out_filename);
return -1;
}
- err_fd = xopen(err_filename, O_CREAT | O_WRONLY | O_APPEND, 0666);
+ err_fd = open(err_filename, O_CREAT | O_WRONLY | O_APPEND, 0666);
if (err_fd < 0) {
ERROR("error re-opening error file: %s\n", err_filename);
return -1;