Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
20edd643
Commit
20edd643
authored
Mar 15, 2017
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Handle return value of write(2)
parent
9aee5183
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/shrpx_exec.cc
src/shrpx_exec.cc
+4
-2
No files found.
src/shrpx_exec.cc
View file @
20edd643
...
...
@@ -85,7 +85,8 @@ int exec_read_command(Process &proc, char *const argv[]) {
rv
=
shrpx_signal_unblock_all
();
if
(
rv
!=
0
)
{
constexpr
char
msg
[]
=
"Unblocking all signals failed
\n
"
;
write
(
STDERR_FILENO
,
msg
,
str_size
(
msg
));
while
(
write
(
STDERR_FILENO
,
msg
,
str_size
(
msg
))
==
-
1
&&
errno
==
EINTR
)
;
nghttp2_Exit
(
EXIT_FAILURE
);
}
...
...
@@ -95,7 +96,8 @@ int exec_read_command(Process &proc, char *const argv[]) {
rv
=
execv
(
argv
[
0
],
argv
);
if
(
rv
==
-
1
)
{
constexpr
char
msg
[]
=
"Could not execute command
\n
"
;
write
(
STDERR_FILENO
,
msg
,
str_size
(
msg
));
while
(
write
(
STDERR_FILENO
,
msg
,
str_size
(
msg
))
==
-
1
&&
errno
==
EINTR
)
;
nghttp2_Exit
(
EXIT_FAILURE
);
}
// unreachable
...
...
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