Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
348db162
Commit
348db162
authored
Jul 11, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NOT redirecting stderr to stdout for UNIX CGI, to avoid output being littered with error messages.
parent
c0ca6a53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mongoose.c
mongoose.c
+2
-1
No files found.
mongoose.c
View file @
348db162
...
@@ -1424,7 +1424,8 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog,
...
@@ -1424,7 +1424,8 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog,
}
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
{
(
void
)
dup2
(
fd_stdout
,
2
);
// Not redirecting stderr to stdout, to avoid output being littered
// with the error messages.
(
void
)
close
(
fd_stdin
);
(
void
)
close
(
fd_stdin
);
(
void
)
close
(
fd_stdout
);
(
void
)
close
(
fd_stdout
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment