Commit 39c6d3ee authored by valenok's avatar valenok

corrected error log message in spawn_process()

parent bf258c7e
...@@ -1172,7 +1172,7 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog, ...@@ -1172,7 +1172,7 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog,
if (chdir(dir) != 0) { if (chdir(dir) != 0) {
cry(conn, "%s: chdir(%s): %s", __func__, dir, strerror(ERRNO)); cry(conn, "%s: chdir(%s): %s", __func__, dir, strerror(ERRNO));
} else if (dup2(fd_stdin, 0) == -1) { } else if (dup2(fd_stdin, 0) == -1) {
cry(conn, "%s: dup2(%d, 1): %s", __func__, fd_stdin, strerror(ERRNO)); cry(conn, "%s: dup2(%d, 0): %s", __func__, fd_stdin, strerror(ERRNO));
} else if (dup2(fd_stdout, 1) == -1) { } else if (dup2(fd_stdout, 1) == -1) {
cry(conn, "%s: dup2(%d, 1): %s", __func__, fd_stdout, strerror(ERRNO)); cry(conn, "%s: dup2(%d, 1): %s", __func__, fd_stdout, strerror(ERRNO));
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment