mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-20 19:41:58 +00:00
added debug trace in mg_start. restored stderr duping in spawn_process()
This commit is contained in:
1 parent
546bec333c
commit
6cf296515b
3 files changed
+127
-181
No files matched your search
+2
-1
@@ -1176,7 +1176,7 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog,
|
||||
} else if (dup2(fd_stdout, 1) == -1) {
|
||||
cry(conn, "%s: dup2(%d, 1): %s", __func__, fd_stdout, strerror(ERRNO));
|
||||
} else {
|
||||
//(void) dup2(fd_stdout, 2);
|
||||
(void) dup2(fd_stdout, 2);
|
||||
(void) close(fd_stdin);
|
||||
(void) close(fd_stdout);
|
||||
|
||||
@@ -3827,6 +3827,7 @@ struct mg_context *mg_start(mg_callback_t user_callback, const char **options) {
|
||||
free(ctx->config[i]);
|
||||
}
|
||||
ctx->config[i] = mg_strdup(value);
|
||||
DEBUG_TRACE(("[%s] -> [%s]", name, value));
|
||||
}
|
||||
|
||||
if (!verify_document_root(ctx)) {
|
||||
|
||||
Reference in new issue
Block a user