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
d0ec964e
...
d0ec964e0e522a7d7e6edda91a970d59539de730
authored
2004-06-16 00:30:20 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ChangeLog mailbox/tcp.c
Check the return value of close(2)
1 parent
b87e34b3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
ChangeLog
mailbox/tcp.c
ChangeLog
View file @
d0ec964
2004
-
06
-
15
Alain
Magloire
*
mailbox
/
tcp
.
c
(
_tcp_close
)
:
Check
the
return
value
of
close
(
2
).
2004
-
06
-
15
Sergey
Poznyakoff
*
libmu_scm
/
Makefile
.
am
(
mailutils
.
scm
)
:
Fixed
producing
rule
.
...
...
mailbox/tcp.c
View file @
d0ec964
...
...
@@ -62,12 +62,18 @@ static int
_tcp_close
(
stream_t
stream
)
{
struct
_tcp_instance
*
tcp
=
stream_get_owner
(
stream
);
int
err
=
0
;
if
(
tcp
->
fd
!=
-
1
)
close
(
tcp
->
fd
);
{
if
(
close
(
tcp
->
fd
)
!=
0
)
{
err
=
errno
;
}
}
tcp
->
fd
=
-
1
;
tcp
->
state
=
TCP_STATE_INIT
;
return
0
;
return
err
;
}
static
int
...
...
Please
register
or
sign in
to post a comment