From 4cd020e5093a1e0b2a875bac1f7d30eb57b968fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 6 Jan 2010 21:12:49 +0000 Subject: [PATCH] Don't use O_CLOEXEC (use tvheadends own wrapper instead) --- src/webui/webui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/webui.c b/src/webui/webui.c index d5dc85ba..572d94fb 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -102,7 +102,7 @@ page_static_file(http_connection_t *hc, const char *remain, void *opaque) snprintf(path, sizeof(path), "%s/%s", base, remain); - if((fd = open(path, O_RDONLY | O_CLOEXEC)) < 0) { + if((fd = tvh_open(path, O_RDONLY, 0)) < 0) { tvhlog(LOG_ERR, "webui", "Unable to open file %s -- %s", path, strerror(errno)); return 404; @@ -222,7 +222,7 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque) content = "video/x-matroska"; } - fd = open(fname, O_RDONLY | O_CLOEXEC); + fd = tvh_open(fname, O_RDONLY, 0); free(fname); if(fd < 0) return 404;