Browse Source

[mod_ssi] init status var before waitpid()

master
Glenn Strauss 9 months ago
parent
commit
76bd8bba9a
  1. 2
      src/configfile.c
  2. 2
      src/mod_ssi.c

2
src/configfile.c

@ -2040,7 +2040,7 @@ int config_parse_cmd(server *srv, config_t *context, const char *cmd) {
else {
ssize_t rd;
pid_t wpid;
int wstatus;
int wstatus = 0;
buffer *out = buffer_init();
close(fds[1]);
fds[1] = -1;

2
src/mod_ssi.c

@ -798,7 +798,7 @@ static int process_ssi_stmt(request_st * const r, handler_ctx * const p, const c
log_perror(errh, __FILE__, __LINE__, "spawning exec failed: %s", cmd);
} else {
struct stat stb;
int status;
int status = 0;
/* wait for the client to end */
/* NOTE: synchronous; blocks entire lighttpd server */

Loading…
Cancel
Save