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
e58ae413
...
e58ae41328ab2134cc888355596c985bd7345986
authored
2004-07-05 05:07:06 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bugfix in stream.c (stream_wait) should return true if we have something in the cache.
1 parent
8f6a087a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
mailbox/include/registrar0.h
mailbox/stream.c
mailbox/include/registrar0.h
View file @
e58ae41
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000 Free Software Foundation, Inc.
Copyright (C) 1999, 2000
, 2004
Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
...
...
mailbox/stream.c
View file @
e58ae41
...
...
@@ -774,6 +774,18 @@ stream_wait (stream_t stream, int *pflags, struct timeval *tvp)
{
if
(
stream
==
NULL
)
return
EINVAL
;
/* Take to acount if we have any buffering. */
if
((
*
pflags
)
&
MU_STREAM_READY_RD
)
{
if
(
stream
->
rbuffer
.
count
>
0
)
{
*
pflags
=
0
;
*
pflags
|=
MU_STREAM_READY_RD
;
return
0
;
}
}
if
(
stream
->
_wait
)
return
stream
->
_wait
(
stream
,
pflags
,
tvp
);
return
ENOSYS
;
...
...
Please
register
or
sign in
to post a comment