Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
e6aee9ea
Commit
e6aee9ea
authored
Jul 13, 2003
by
Per Cederqvist
Browse files
(oop_sys_run): Added a few assertions to try to figure out why select
still returns EINVAL sometimes.
parent
f53e94e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/liboop/sys.c
View file @
e6aee9ea
...
...
@@ -322,6 +322,8 @@ void *oop_sys_run(oop_source_sys *sys) {
tv
.
tv_sec
=
0
;
tv
.
tv_usec
=
0
;
}
assert
(
tv
.
tv_usec
>=
0
);
assert
(
tv
.
tv_usec
<
1000000
);
}
if
(
!
sys
->
sig_active
)
sys
->
do_jmp
=
!
sigsetjmp
(
sys
->
env
,
1
);
...
...
@@ -341,8 +343,16 @@ void *oop_sys_run(oop_source_sys *sys) {
if
(
NULL
!=
sys
->
files
[
i
][
OOP_EXCEPTION
].
f
)
FD_SET
(
i
,
&
xfd
);
}
assert
(
ptv
==
NULL
||
(
ptv
->
tv_usec
>=
0
&&
ptv
->
tv_usec
<
1000000
));
do
{
assert
(
ptv
==
NULL
||
(
ptv
->
tv_usec
>=
0
&&
ptv
->
tv_usec
<
1000000
));
assert
(
sys
->
num_files
>=
0
);
rv
=
select
(
sys
->
num_files
,
&
rfd
,
&
wfd
,
&
xfd
,
ptv
);
}
while
(
0
>
rv
&&
EINTR
==
errno
);
sys
->
do_jmp
=
0
;
...
...
Write
Preview
Supports
Markdown
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