summaryrefslogtreecommitdiff
path: root/src/fdevent.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-07-20 03:37:14 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-08-02 06:46:22 -0400
commitbe6da785c5c38982e757f10e09e5503180b31a93 (patch)
treee1ee400adb54ed2416e847e1ee28067dd6028b3c /src/fdevent.c
parent5b15c1f449e6b5668f62989f3368c5b5d02f0201 (diff)
downloadlighttpd-git-be6da785c5c38982e757f10e09e5503180b31a93.tar.gz
[mod_deflate] deflate.cache-dir compressed cache
(achieves feature parity with mod_compress)
Diffstat (limited to 'src/fdevent.c')
-rw-r--r--src/fdevent.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fdevent.c b/src/fdevent.c
index 1c612b48..0df1dacc 100644
--- a/src/fdevent.c
+++ b/src/fdevent.c
@@ -724,9 +724,15 @@ int fdevent_set_stdin_stdout_stderr(int fdin, int fdout, int fderr) {
}
-#include <stdio.h> /* perror() */
+#include <stdio.h> /* perror() rename() */
#include <signal.h> /* signal() */
+
+int fdevent_rename(const char *oldpath, const char *newpath) {
+ return rename(oldpath, newpath);
+}
+
+
pid_t fdevent_fork_execve(const char *name, char *argv[], char *envp[], int fdin, int fdout, int fderr, int dfd) {
#ifdef HAVE_FORK