Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
683cc929
Commit
683cc929
authored
Feb 04, 2013
by
Tollef Fog Heen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishadm: Handle EINTR from poll
poll can return EINTR, so we need to handle that. Fixes: #1166
parent
8a2fdce4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
varnishadm.c
bin/varnishadm/varnishadm.c
+3
-0
No files found.
bin/varnishadm/varnishadm.c
View file @
683cc929
...
@@ -230,6 +230,9 @@ pass(int sock)
...
@@ -230,6 +230,9 @@ pass(int sock)
fds
[
1
].
events
=
POLLIN
;
fds
[
1
].
events
=
POLLIN
;
while
(
1
)
{
while
(
1
)
{
i
=
poll
(
fds
,
2
,
-
1
);
i
=
poll
(
fds
,
2
,
-
1
);
if
(
i
==
-
1
&&
errno
==
EINTR
)
{
continue
;
}
assert
(
i
>
0
);
assert
(
i
>
0
);
if
(
fds
[
0
].
revents
&
POLLIN
)
{
if
(
fds
[
0
].
revents
&
POLLIN
)
{
/* Get rid of the prompt, kinda hackish */
/* Get rid of the prompt, kinda hackish */
...
...
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