Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
a10aa06e
...
a10aa06ee1ba782b446357cecd9361953954b776
authored
2006-12-15 15:16:26 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_fd_wait): Handle MU_STREAM_READY_EX
1 parent
af24726a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
mailbox/mutil.c
mailbox/mutil.c
View file @
a10aa06
...
...
@@ -1269,15 +1269,18 @@ mu_scheme_autodetect_p (const char *scheme, const char **path)
int
mu_fd_wait
(
int
fd
,
int
*
pflags
,
struct
timeval
*
tvp
)
{
fd_set
rdset
,
wrset
;
fd_set
rdset
,
wrset
,
exset
;
int
rc
;
FD_ZERO
(
&
rdset
);
FD_ZERO
(
&
wrset
);
FD_ZERO
(
&
exset
);
if
((
*
pflags
)
&
MU_STREAM_READY_RD
)
FD_SET
(
fd
,
&
rdset
);
if
((
*
pflags
)
&
MU_STREAM_READY_WR
)
FD_SET
(
fd
,
&
wrset
);
if
((
*
pflags
)
&
MU_STREAM_READY_EX
)
FD_SET
(
fd
,
&
exset
);
do
{
...
...
@@ -1301,6 +1304,8 @@ mu_fd_wait (int fd, int *pflags, struct timeval *tvp)
*
pflags
|=
MU_STREAM_READY_RD
;
if
(
FD_ISSET
(
fd
,
&
wrset
))
*
pflags
|=
MU_STREAM_READY_WR
;
if
(
FD_ISSET
(
fd
,
&
exset
))
*
pflags
|=
MU_STREAM_READY_EX
;
}
return
0
;
}
...
...
Please
register
or
sign in
to post a comment