diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-20 03:37:14 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-08-02 06:46:22 -0400 |
commit | be6da785c5c38982e757f10e09e5503180b31a93 (patch) | |
tree | e1ee400adb54ed2416e847e1ee28067dd6028b3c /src/fdevent.c | |
parent | 5b15c1f449e6b5668f62989f3368c5b5d02f0201 (diff) | |
download | lighttpd-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.c | 8 |
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 |