Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
a1858022
Commit
a1858022
authored
Sep 21, 2018
by
Jean-Claude BAU
Committed by
Adam Wujek
Nov 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimization timeout generation
- Reset local remaining time-out when 'select' exits due to a signal
parent
2dfd3108
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
unix-socket.c
time-unix/unix-socket.c
+9
-6
No files found.
time-unix/unix-socket.c
View file @
a1858022
...
...
@@ -624,12 +624,15 @@ static int unix_net_check_packet(struct pp_globals *ppg, int delay_ms)
}
i
=
select
(
maxfd
+
1
,
&
set
,
NULL
,
NULL
,
&
arch_data
->
tv
);
if
(
i
<
0
&&
errno
!=
EINTR
)
exit
(
__LINE__
);
if
(
i
<
0
)
return
-
1
;
if
(
i
<
0
)
{
if
(
errno
!=
EINTR
)
exit
(
__LINE__
);
else
{
arch_data
->
tv
.
tv_sec
=
arch_data
->
tv
.
tv_usec
=
0
;
return
-
1
;
}
}
if
(
i
==
0
)
return
0
;
...
...
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